How to detect when all players are death
#2

I made a script like this but idk if I want to give it out. Crap I don't even know if it works or not xD
But here is detect if all players are dead.
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
   new dead,alive;
   for(new i=0; i<MAX_PLAYERS; i++){
     if(spectating[i] == 0) alive++;
   }
   else dead++
}
if(alive == 0)
{
//blah
}
idk something like that
Reply


Messages In This Thread
How to detect when all players are death - by samtmaster - 25.10.2009, 21:29
Re: How to detect when all players are death - by Battleskull - 25.10.2009, 21:31

Forum Jump:


Users browsing this thread: 1 Guest(s)