Forum

> > CS2D > Scripts > I don't know how to make auto zombie script.
Forums overviewCS2D overview Scripts overviewLog in to reply

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

15 replies
To the start Previous 1 Next To the start

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

Fiz
User Off Offline

Quote
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 :).

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

DannyDeth
User Off Offline

Quote
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!

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

Wozny333
User Off Offline

Quote
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
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview