Forum




menu making need help
9 replies




Heres what I did so far on the lua script.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
addhook("menu","sample.classes.menu")
function sample.classes.menu(id,menu,sel)
if (menu=="Select your Class#1") then
if (sel>=0 and sel<=8) then
sample.classes.class[id]=sel
if (player(id,"health")>0) then
parse("killplayer "..id)
end
elseif (sel>=9) then
menu(id,"Select your Class#2:Tank,Zombie,Commando")
end
end
if (menu=="Select your Class#2") then
if (sel>=0 and sel<=3) then
sample.classes.class[id]=sel+9
if (player(id,"health")>0) then
parse("killplayer "..id)
end
end
end
end
1
2
3
4
2
3
4
sample.classes.class=initArray(32)
function sample.classes.classmenu(id)
menu(id,"Select your Class,Random,Soldier,Ghost,Engineer,Pyro,Scout,Sniper,Bomber,Next")
end
1
menu(id,"Select your Class,Random,Soldier,Ghost,Engineer,Pyro,Scout,Sniper,Bomber,Next")
You check for the title Select your Class#1 in your function:
1
if (menu=="Select your Class#1") then

I'll give you a fix. Replace
1
menu(id,"Select your Class#2:Tank,Zombie,Commando")
1
menu(id,"Select your Class#2,Tank,Zombie,Commando")



edited 1×, last 15.04.11 12:46:13 pm




