29.02.2016, 10:44
I have made this code which checks to see that their should be atleast 1 zombie player. I just can't figure out where to put this code :P
EDIT: I only want to check once after the map starts that if zombie team is empty.
EDIT: I only want to check once after the map starts that if zombie team is empty.
Код:
if((playerOnline >= 1) && (GetTeamPlayersAlive(TEAM_ZOMBIE) == 0))
{
new rand = -1;
while(!IsPlayerConnected(rand)) rand = random(MAX_PLAYERS);
ZombieSetup(rand);
SpawnPlayer(rand);
}

