Forum

> > CS2D > Scripts > menu
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch menu

2 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt menu

Glix
User Off Offline

Zitieren
1
2
3
4
5
6
7
8
9
10
11
12
addhook("menu","menu1")
function menu1(id,p)
if p==1 then
menu(id,"Title,teleport|a,hp20|20hp")
end
end 
addhook("menua","menu2")
function menu2(id,name,button)
if name=="Title" then
if button==1 then
parse("menu(id,"teleport,teleport to home"")
elseif button==2 then

why this not work

making 2 menus following the same method. Just by calling another menu with the if-condition asking to their name?
1× editiert, zuletzt 14.02.11 11:08:07

alt Re: menu

RAVENOUS
BANNED Off Offline

Zitieren
1
addhook("menua","menu2")

change to
1
addhook("menu","menu2")

making 2 menus following the same method. Just by calling another menu with the if-condition asking to their name.

edit:

1
addhook("menu","menu1")
change to:
1
addhook("serveraction","menu1")

and you forgot 1 bracket near the if b==1 then lol

alt Re: menu

Banaan
User Off Offline

Zitieren
Zitat
1
parse("menu(id,"teleport,teleport to home"")
Why parse that? 'menu' is not a cs2d command.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht