30.01.2015, 18:11
Use a switch.
Here's an example that will choose randomly between giving 1000, 2000 or 3000.
Here's an example that will choose randomly between giving 1000, 2000 or 3000.
pawn Код:
switch(random(2))
{
case 0: GivePlayerMoney(playerid, 1000);
case 1: GivePlayerMoney(playerid, 2000);
case 2: GivePlayerMoney(playerid, 3000);
}