Random choice of players - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Random choice of players (
/showthread.php?tid=415003)
Random choice of players -
Louris - 11.02.2013
Can someone give me cmd which select one of all players in server? For example /select, ant it writes: Nickname was selected from all players.
Re: Random choice of players -
MP2 - 11.02.2013
I think what ****** meant to say was:
If you use foreach, you can simply do:
pawn Код:
new pid = Iter_Random(Player);
Get foreach here:
https://sampforum.blast.hk/showthread.php?tid=92679