Spawn System.
#1

'Ello,
How can i check, If there are any players alive?
Players that are dead, got 'IsDead: 1''.
But.. If want to check if all players got ''IsDead: 1"..
And if they are. I want to force public round();
Reply
#2

Hmm?
Reply
#3

pawn Код:
stock IsPlayerDead( playerid )
{
  if( GetPlayerState( playerid ) == PLAYER_STATE_WASTED ) return true;
  else return false;
}

new deadcount, alivecount;
for( new i; i < MAX_PLAYERS; i++)
{
   if(IsPlayerConnected( i )
   {
      if( IsPlayerDead( i ) == true ) { deadcount++; continue; }
      else alivecount++;
      continue;
   }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)