Forum

> > CS2D > Scripts > Zombie help
Forums overviewCS2D overview Scripts overviewLog in to reply

English Zombie help

8 replies
To the start Previous 1 Next To the start

old Zombie help

BrownSoldier
BANNED Off Offline

Quote
Can sombody tell me how to make a lua when u press f2 then zombie menu comes out :)?

old Re: Zombie help

JONY
User Off Offline

Quote
What exactly is zombie menu? Give more information.
But here's the beginning:

1
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

old Re: Zombie help

Vectarrio
User Off Offline

Quote
edgiuksxD123 has written
Can sombody make a an exemple menu pls

just fixed JONY's script:
1
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

old Re: Zombie help

JONY
User Off Offline

Quote
@Vectar666, thanks, I was writing from the top of my mind.
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
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview