Forum

> > CS2D > Scripts > menu
Forums overviewCS2D overview Scripts overviewLog in to reply

English menu

2 replies
To the start Previous 1 Next To the start

old menu

Glix
User Off Offline

Quote
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?
edited 1×, last 14.02.11 11:08:07 am

old Re: menu

RAVENOUS
BANNED Off Offline

Quote
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

old Re: menu

Banaan
User Off Offline

Quote
Quote
1
parse("menu(id,"teleport,teleport to home"")
Why parse that? 'menu' is not a cs2d command.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview