How can I... - 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: How can I... (
/showthread.php?tid=193243)
How can I... -
Lars_Frederiksen - 25.11.2010
... Make it so when the player buy something from, Pay n' Spray, or the Mod Shop, or Gambles, it gives their money back?
Re: How can I... -
randomkid88 - 25.11.2010
Not sure about the ModShop or Casinos but you could give the person 100 dollars through OnVehicleRespray or OnVehiclePaintJob
Re: How can I... -
Calgon - 25.11.2010
Store a serverside variable which has their valid money count (which actually helps prevent money-cheating) and then when their clientside money value changes, return it back to what the server has stored.
Look for a tutorial on it, I think I've seen a few relating to this small topic. It's just a few lines of code.
Re: How can I... -
legodude - 25.11.2010
but then you couldnt change it via GivePlayerCash aswel. it just would reset