04.04.2013, 16:47
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;
}
}