Forum

> > CS2D > Scripts > I don't know how to make auto zombie script.
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch I don't know how to make auto zombie script.

15 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Re: I don't know how to make auto zombie script.

Fiz
User Off Offline

Zitieren
If you just want it to be the zombies gamemode every round, copy this into the lua notepad:

parse("sv_gm 5")

Or, go to settings > more settings > autogamemode > on <
Then all you have to do is run a map with zm_ at the start and it will run it on zombies.
hope this helped :).

alt Re: I don't know how to make auto zombie script.

DannyDeth
User Off Offline

Zitieren
Here:
1
2
3
4
5
6
7
8
9
zombie = {}
addhook("team","zombie_check")
function zombie_check(team,id)
	if team==1 then
		zombie[id]=1
	else
		return 0
	end
end
that should work
And you must not do this:
1
zombie[id]=0
As all the elements of an array/table start out as 0, so you will make no difference!

alt Re: I don't know how to make auto zombie script.

Wozny333
User Off Offline

Zitieren
But that doesn't work.
I test this:
1
msg("©255255000Testing.GM."..game("sv_gamemode"))
and this:
1
if game("sv_gamemode")==2 then msg("©255255000Testing.If.GM.2") end
on Team Deathmach
In first it say Testing.GM.2 but in second doesn't say Testing.If.GM.2
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht