Money Inflation - 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: Money Inflation (
/showthread.php?tid=69569)
Money Inflation -
RodgerS - 19.03.2009
Okay, I need help, I got this new thing for my server, its "/signcheck [numbers]" everything works, just the only thing is that it will only give everyone anywhere from $1 to $300 dollars, like this...
The check was already signed before I took the picture, I was just showing you an example of what I typed, so can anyone tell me how to inflate the money on my server?
Re: Money Inflation -
Zoopaman - 19.03.2009
you mean, like, inflation?
you could make a timer, which raises a variable, let's say "inflation", by some percentage daily (let's say 0.5% a day).
Then on payday you just add the value of "inflation" to the payday.
Re: Money Inflation -
RodgerS - 19.03.2009
No, by inflation I mean, more money on payday, I know how to make stuff cost more, and how to set peoples bank accounts, I just don't know how to make them get more money on payday, say like $2500 dollars when there level 1 and just make it keep raising as they get a higher level
Re: Money Inflation -
Chaprnks - 19.03.2009
As I am assuming this is a Godfather edit, or an edit of a script based off Godfather, you will need to edit the values given to the players info "pPayCheck" on the PlayerInfo enum, this is where the amount increases, at default Godfather I think it increases at a timer, you could higher this timer. If that does not lower it enough to what you would like, just remove that part of the timer, and make a random() function before the paytime is called using the "pPayCheck" value being edited, and the rest will be displayed on the normal paycheck text.
EDIT
I think Godfather also gives money based on the players level. I remember looking over that a long time back.
Re: Money Inflation -
Delused - 19.03.2009
You'll have a code similar to GivePlayerMoney(playerid, money);
Change money to strval(money);