random
#3

Here is the idea
pawn Код:
new RandomCash[] =
{
    100,
    100,
    100,
    150,
    150,
    1000
};



//then
   new Random = random(sizeof(RandomCash));
    GivePlayerMoney(playerid, RandomCash[Random]);
100$ will have the most chance to be gotten

EDIT: Too late, BroZeus already posted the solution
Reply


Messages In This Thread
random - by iBots - 06.09.2014, 13:05
Re: random - by BroZeus - 06.09.2014, 13:42
Re: random - by Battlezone - 06.09.2014, 13:45

Forum Jump:


Users browsing this thread: 1 Guest(s)