View Full Version : Anti Money Hack and Filterscripts

10/01/2015, 02:42 PM
Hello, i've problem with Anti Money Hack, i use this system: http://forum.sa-mp.com/showthread.php?t=71136
And he work so good, but with FS i've a problem.
I sold out a business (for example) the Anti Money Hack detect me: Money Hack, but is true.
I've definied that on FS: #define GivePlayerCash GivePlayerMoney but the server response me: Money Hack

Who can resolve that?

Sorry for my bad english!

10/01/2015, 02:50 PM
You shouldn't define the GivePlayerCash, that's the same as using GivePlayerMoney and obviously will count you as a cheater because you aren't changing the variable amount of money.

You should paste this stock:

stock GivePlayerCash(playerid, money)
Cash[playerid] += money;
ResetMoneyBar(playerid);//Resets the money in the original moneybar, Do not remove!
UpdateMoneyBar(playerid,Cash[playerid]);//Sets the money in the moneybar to the serverside cash, Do not remove!
return Cash[playerid];

And then use GivePlayerCash(playerid, 100); (for example) for giving playerid 100 of money. Hope you understand

10/01/2015, 03:08 PM
I've add that, after stock:

new Cash[MAX_PLAYERS];

#define ResetMoneyBar ResetPlayerMoney
#define UpdateMoneyBar GivePlayerMoney

Remember i've add that in FS (not is definied the anti cheat)
I've add this and the stock result: nothing.

The problem is same

10/01/2015, 09:45 PM
1) But is good modifiy for Cheat
2) Is present tutorial or discussion to watch for y_remote?

I've try that:

stock GivePlayerCash(playerid, money)
return GivePlayerMoney(playerid, money);

But nothing..

10/01/2015, 10:34 PM
I've watch CallRemoteFunction but how call the function of GameMode on FilterScript?

11/01/2015, 12:04 AM
Solved with CallRemoteFunction.
I've modify stock on pubblic and modify GivePlayerMoney on FS with CallRemoteFunction :)