Random Cash Amounts? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Random Cash Amounts? (
/showthread.php?tid=122118)
Random Cash Amounts? -
JoeDaDude - 20.01.2010
Hello, Im making a pickpocket command,
And i want it, So everytime someone tries to pickpocket someone,
Instead of giving them the same cash amount every time,
I want it random, I know how to do random spawns and stuff, But not random cash amounts,
I think this is possible, It should be, Anyone tell me how?
Like so soemtimes he gets 100, Sometimes 50, And sometimes 150
Re: Random Cash Amounts? -
BMUK - 20.01.2010
https://sampwiki.blast.hk/wiki/Random
Re: Random Cash Amounts? -
AiVAMAN - 20.01.2010
Something like this:
pawn Код:
new pickpoketcash = rand(type max amount of money there);
GivePlayerMoney(playerid, pickpoketcash);