27.03.2016, 19:25
PHP код:
stock GetNextPlayerID(id)
{
for(new i = (id + 1), j = GetPlayerPoolSize(); i <= j; i --)
{
if(!IsPlayerConnected(i))
{
continue;
}
return i;
}
return INVALID_PLAYER_ID;
}