13.06.2011, 14:36
Your best bet would be to make use of the 'random' function. A few examples of how it can be used:
For further information, check the wiki entry here: https://sampwiki.blast.hk/wiki/Random
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