Quote:
Originally Posted by Fratello
If I tell you how to make it , will you end up requesting the code?
|
of course no
Quote:
Originally Posted by Kraeror
Here you are bro, I think it will help you:
PHP код:
new Places = randomEx(1,3);
switch(Places)
{
case 1: GivePlayerMoney(playerid,1000+RandomEx(100,300)); // 1k + Random between 100 and 300
case 2: GivePlayerMoney(playerid,600+RandomEx(100,200)); // 1k + Random between 100 and 200
case 3: GivePlayerMoney(playerid,300+RandomEx(0,100)); // 1k + Random between 0 and 100
}
There are the stocks if you didn't definded them:
PHP код:
stock randomEx(minnum = cellmin, maxnum = cellmax) return random(maxnum - minnum + 1) + minnum;
PHP код:
stock RandomEx(min, max)
{
new output;
output = max-min;
output = random(output);
output = min+output;
return output;
}
+REP me if I helped!
|
thats what i wanted dude yee
+rep both of you(kinda kraeror only deserves it but hey why not)
btw it says i must spread it before giving it to you again xDD