09.03.2015, 13:54
The Code he posted will not work
Use this:
Greekz
Use this:
Код:
stock GetRandomOnlineID() { new tmp[MAX_PLAYERS],idx; for(new i; i<MAX_PLAYERS; i++) if(IsPlayerConnected(i)) tmp[idx]=i,idx++; return tmp[random(idx)]; } new id = GetRandomOnlineID(); //now you have a random id