SA-MP Forums Archive
How to disable negative money? - 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)
+--- Thread: How to disable negative money? (/showthread.php?tid=334079)



How to disable negative money? - TheMightyEddy - 13.04.2012

How can I disable money from going to into the negatives?


Re: How to disable negative money? - Kiets - 13.04.2012

Just check somewhere player's money

new money = GetPlayerMoney(playerid);
if(money < 0) ResetPlayerMoney(playerid);