Where to put the code???
#1

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.

Код:
if((playerOnline >= 1) && (GetTeamPlayersAlive(TEAM_ZOMBIE) == 0))
	 {
	 	new rand = -1;
  		while(!IsPlayerConnected(rand)) rand = random(MAX_PLAYERS);
	    ZombieSetup(rand);
	   	SpawnPlayer(rand);
    }
Reply
#2

What Your Mean ?

I Think Your Mean "Where the CODE Put", Right ?

if Right You Can Put at :
Quote:

public OnPlayerSpawn

Reply
#3

no dude if i put it in onplayerspawn it will check number of zombie everytime a player connects. I said i just want to check it once after a map begins.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)