Random Numbers
#1

How Can I Create SomeThing That Will give me random numbers and then use it to give people money?
Reply
#2

You want to generate a random money value?

pawn Код:
new randomvalue = random(2000); // this will choose a random value between 0 and 2000
GivePlayerMoney(playerid, randomvalue); // this will give a player the random value
Reply
#3

https://sampwiki.blast.hk/wiki/Random

or

pawn Код:
stock RandomEx(min, max) // By ******
{
    return random(max - min) + min;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)