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



Anti Money Hack and Filterscripts - vinnythebest - 10.01.2015

Hello, i've problem with Anti Money Hack, i use this system: https://sampforum.blast.hk/showthread.php?tid=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!


Respuesta: Anti Money Hack and Filterscripts - The_Scope - 10.01.2015

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:
pawn Код:
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


Re: Anti Money Hack and Filterscripts - vinnythebest - 10.01.2015

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


Re: Anti Money Hack and Filterscripts - vinnythebest - 10.01.2015

@******
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..


Re: Anti Money Hack and Filterscripts - vinnythebest - 10.01.2015

I've watch CallRemoteFunction but how call the function of GameMode on FilterScript?


Re: Anti Money Hack and Filterscripts - vinnythebest - 11.01.2015

Solved with CallRemoteFunction.
I've modify stock on pubblic and modify GivePlayerMoney on FS with CallRemoteFunction