Spawn System.
#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


Messages In This Thread
Spawn System. - by faff - 04.04.2013, 14:58
Re: Spawn System. - by faff - 04.04.2013, 16:04
Re: Spawn System. - by RajatPawar - 04.04.2013, 16:47

Forum Jump:


Users browsing this thread: 2 Guest(s)