Random players.
#1

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.
Reply
#2

pawn Код:
new variable[2];
variable[0] = random(MAX_PLAYERS); // ID of player
variable[1] = // Another information
Reply
#3

Use foreach.

Check Iter_Random function.
Reply
#4

https://sampforum.blast.hk/showthread.php?tid=352900
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)