18.08.2012, 22:51
pawn Код:
//
new players_alive;
for(new i; i < MAX_PLAYERS; i++)
{
new Float:player_health;
GetPlayerHealth(i, player_health);
if(player_health > 0 || GetPlayerState(i) != PLAYER_STATE_WASTED)// Change it if needed.
{
players_alive++;
}
}
if(players_alive == 1) SendClientMessageToAll(-1, "There is only one person alive");
else if(players_alive > 1) SendClientMessageToAll(-1, "There is players alive");
//