25.07.2014, 09:15
I didn't test it, but try this:
pawn Код:
stock GetPlayersAlive()
{
new count = 0;
new Float:hp;
for (new i = 0; i < MAX_PLAYERS; i++)
{
GetPlayerHealth(i, hp);
if (hp > 0) count++;
}
return count;
}