SA-MP Forums Archive
random player - 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 player (/showthread.php?tid=497526)



random player - iBots - 27.02.2014

i have made a command to make a player most wanted randomly,i have set the random thing and everything,but how to make like the random player will get the most wanted level?like i made the command and..but the last thing is to set the random selected player as most wanted,how?


Re: random player - Konstantinos - 27.02.2014

You can select a random player using foreach.
pawn Код:
Iter_Random(Player)
returns a random connected player.