Get random players
#2

Your best bet would be to make use of the 'random' function. A few examples of how it can be used:
pawn Код:
new i = random(10); // would store a random integer between 0 - 10 into the i variable
pawn Код:
if(random(5) == 1) // would give a 1 in 5 chance of passing the IF statement
For further information, check the wiki entry here: https://sampwiki.blast.hk/wiki/Random
Reply


Messages In This Thread
Get random players - by VoViNaToR - 13.06.2011, 14:29
Re: Get random players - by Benjo - 13.06.2011, 14:36
Re: Get random players - by VoViNaToR - 13.06.2011, 14:42
Re: Get random players - by VoViNaToR - 13.06.2011, 14:48
Re: Get random players - by Benjo - 13.06.2011, 14:50
Re: Get random players - by VoViNaToR - 13.06.2011, 14:55
Re: Get random players - by Jefff - 13.06.2011, 17:13

Forum Jump:


Users browsing this thread: 1 Guest(s)