29.03.2014, 00:50
how to make random prize??
I wanna the define only:
I wanna the define only:
pawn Код:
new //what's here?
new //what's here?
GivePlayerMoney(playerid,5000);//rand1
GivePlayerMoney(playerid,7000);//rand2
GivePlayerMoney(playerid,10000);//rand3
GivePlayerMoney(playerid,20000);//rand4
new rand = random(5);
switch(rand)
{
case 0: GivePlayerMoney(playerid, xxx);
case 1: GivePlayerMoney(playerid, xxx);
//and so on
}