15.11.2014, 22:42
pawn Код:
SelectPlayerRandom()
{
static
players[MAX_PLAYERS],
conectados;
for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i)){
players[conectados++] = i;
}
return random(players[random(conectados)]);
}
SelectPlayerRandom()
{
static
players[MAX_PLAYERS],
conectados;
for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i)){
players[conectados++] = i;
}
return random(players[random(conectados)]);
}