16.08.2010, 17:27
The title says everything I want to make giveplayermoney(playerid,MN) where MN should be random from 60 to 800$ How can I make it?
stock GiveRandomAmount(playerid)
{
new RandomAMT = random(800);
if(random >= 60 && random <= 800) { GivePlayerMoney(playerid, random); }
return 1;
}
pawn Код:
|
stock RandomMoney()
{
return (60+random(741));
}
GivePlayerMoney(playerid, RandomMoney() );