23.07.2014, 10:02
ACash Server-Side Money
Introduction :
I'm surfing the SA-MP Forum since a while and I find out I must do something and share it here with you, I couldn't think in anything, Then I got this idea, As far as I know, This will protect your server from money cheaters.
I will update this time to time when I have time, You can suggest me ideas, And report any bugs found.
How to use this ?
All you have to do is copy and paste the code I'll give you from Pastebin and compile it into a new pwn file, You can name it ACash.pwn or what ever you want, It's not a big deal, Then compile it.
Place the .amx file into FilterScript folder.
Add ACash.amx into FilterScript line in your server.cfg and you can run your server.
How does it work ?
pawn Code:
if(GetPlayerACash(playerid) < 50) // Will check if the player has 50 ACash.
pawn Code:
GivePlayerACash(playerid,50); // Will give the player 50 ACash.
pawn Code:
CreateMoney(playerid); // Used to create The TextDraw for the players.
Download