Forum

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

Englisch Zombie help

8 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Zombie help

BrownSoldier
BANNED Off Offline

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

alt Re: Zombie help

JONY
User Off Offline

Zitieren
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

alt Re: Zombie help

Vectarrio
User Off Offline

Zitieren
edgiuksxD123 hat geschrieben
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

alt Re: Zombie help

JONY
User Off Offline

Zitieren
@Vectar666, thanks, I was writing from the top of my mind.
Here's the general description from info.txt:
info.txt hat geschrieben
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
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht