SA-MP Forums Archive
Anti Money Hack - 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: Anti Money Hack (/showthread.php?tid=442729)



Anti Money Hack - Blackazur - 08.06.2013

Hello, can someone make me a Anti Money Hack Script? I tried everything but nothing works..


Re: Anti Money Hack - Chadi - 08.06.2013

Very Simple fllow this script

new Additionargent[MAX_PLAYERS];
new ancienargent[MAX_PLAYERS];
new officielargent[MAX_PLAYERS];
forward aunticheatARGENT()


Onplayerconnect et OnPlayerDisconnect

Additionargent[playerid] = 0;
ancienargent[playerid] = 0;

GameModeInit
SetTimer("aunticheatARGENT",1000,1);

PHP код:
public aunticheatARGENT()
 {
 for(new 
argent=0argent<MAX_PLAYERSargent++)
 {
 if(
IsPlayerConnected(argent))
 {
 if(
GetPlayerMoney(argent) != officielargent[argent])
 {
 
ancienargent[argent] = GetPlayerMoney(argent);
 
ResetPlayerMoney(argent);
 
GivePlayerMoney(argent,officielargent[argent]);
 }
 }
 }
 return 
0;
 } 
Use officielargent[playerid] += 500; // to Give 500 $ to a player


Re: Anti Money Hack - JJB562 - 08.06.2013

This tutorial might help:

https://sampforum.blast.hk/showthread.php?tid=71136