22.02.2011, 18:19
pawn Код:
GetPlayerCount()
GetPlayerCount()
stock GetPlayerCount()
{
new amount=0;
for(new i=0; i<MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
amount++;
}
}
return amount;
}
stock GetConnectedPlayers() return Iter_Count(Character);