Random Cash Amounts?
#1

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
Reply
#2

https://sampwiki.blast.hk/wiki/Random
Reply
#3

Something like this:

pawn Код:
new pickpoketcash = rand(type max amount of money there);

GivePlayerMoney(playerid, pickpoketcash);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)