Forum
CS2D Scripts Zombie helpZombie help
8 replies 1
But here's the beginning:
1
2
3
4
5
6
2
3
4
5
6
addhook("serveraction","openMenu") function openMenu(id,action) 	if (action == 1) then --F2 		menu("Zombie menu, ....") --don't know what's in the menu 	end end
you forgot to put id befor menu string in menu function
edgiuksxD123 has written
Can sombody make a an exemple menu pls
just fixed JONY's script:
1
2
3
4
5
6
2
3
4
5
6
addhook("serveraction","openMenu") function openMenu(id,action) 	if (action == 1) then --F2 		menu(id,"Zombie menu, ....") --don't know what's in the menu 	end end
Here's the general description from info.txt:
info.txt has written
menu(id,"title,b1,b2,...,b9") Open a menu on the screen of a certain player (id=player id)
or at the screen of every player (id=0)!
title = title of the menu
b1-b9 = button captions,
use empty strings ("") for buttons you don't need! Attach @b at the
end of title for a bigger menu or @i for an invisible menu
or at the screen of every player (id=0)!
title = title of the menu
b1-b9 = button captions,
use empty strings ("") for buttons you don't need! Attach @b at the
end of title for a bigger menu or @i for an invisible menu
Nothing else. In future u can use it as example.
1