SA-MP Forums Archive
Need some suggestions ... - 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: Need some suggestions ... (/showthread.php?tid=198145)



Need some suggestions ... - Danny - 11.12.2010

Hi,

I want to make Serverside money to stop money hackers ...
But i want that the Pay'N Spray/tuneshops keep working. How i can do this?
So, basically i need a code to detect if a player resprays his car (OnVehicleRespray isnt working in pay n sprays, i know that) to take some money from him. And after that there's the Transfender/Wheel Arch Angels. Do someone have a code that make those things work with Serverside money?

(I already have some idea's for vending machines, and SA Shops)

Greetz,
Danny


Re: Need some suggestions ... - TheXIII - 11.12.2010

Well, you could do so that money can be removed client-side, but not added.
pawn Код:
if( GetPlayerMoney(playerid) < ServerMoney[playerid] ) ServerMoney[playerid] = GetPlayerMoney(playerid);