Random 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 players. (
/showthread.php?tid=360086)
Random players. -
Blunt - 16.07.2012
I was thinking of making a small gamemode and I wondered how I would go about setting a variable to a random player, if anyone can help it'd be appreciated very much.
Re: Random players. -
ViniBorn - 16.07.2012
pawn Код:
new variable[2];
variable[0] = random(MAX_PLAYERS); // ID of player
variable[1] = // Another information
Re: Random players. -
Larceny - 16.07.2012
Use
foreach.
Check Iter_Random function.
Re: Random players. -
MadeMan - 16.07.2012
https://sampforum.blast.hk/showthread.php?tid=352900