04.11.2009, 08:19
Hi.
Is there any way to select a RANDOM ID?
Thanks.
Is there any way to select a RANDOM ID?
Thanks.
Originally Posted by Kurence
new playa;
playa = random(MAX_PLAYERS); if(IsPlayerConnected(playa)) Kick(playa); -This will kick random player ![]() |
Originally Posted by ┤ŞąiBЄЯҒПŋ├
Quote:
you could do new playa = random(MAX_PLAYERS); instead tho ![]() |
Originally Posted by ~MaVe
You can't do something like random(MAX_PLAYERS), as some player slots may be empty, see if there would be these players:
0 1 2 3 4 5 6 then player 2 and 4 disconnect, it looks like that now: 0 1 3 5 6 |