21.03.2014, 21:07
If you like, you can use this method:
Код:
new rand = random(5)+1; switch(rand) { case 1: GivePlayerMoney(playerid,5000); case 2: GivePlayerMoney(playerid,1000); case 3: GivePlayerMoney(playerid,6000); case 4: GivePlayerMoney(playerid,7000); case 5: GivePlayerMoney(playerid,100); default: GivePlayerMoney(playerid,20000); }