Anti money hack problem - 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 problem (
/showthread.php?tid=630965)
Anti money hack problem -
andrejc999 - 20.03.2017
Hello guys.
I've made an anti money hack system like a year ago and still having problems with it -_- (I made it by myself, didn't look at any filterscripts). So the problem is, when I tune my vehicle in ls custom for ex., it thinks that I'm cheating... I tried something like this:
Код:
public OnVehicleMod(playerid, vehicleid, componentid)
{
SaveComponent(vehicleid, componentid);
ocitan[playerid] = 0; //It's a variable which controls the money checking...
SetTimerEx("VehMod", 1000, false, "i", playerid);
return 1;
}
public VehMod(playerid)
{
newmoney[playerid] = GetPlayerMoney(playerid); //newmoney is a server side money variable for players...
ocitan[playerid] = 1;
return 1;
}
but it doesn't work for some reason...
Can anyone help me? I would appreciate that.
Re: Anti money hack problem -
Toroi - 20.03.2017
You could help yourself with the use of this callback
https://sampwiki.blast.hk/wiki/OnEnterExitModShop
You could disable your AC when they enter the modshop, update the variables when they exit and make it run again.
Re: Anti money hack problem -
andrejc999 - 20.03.2017
Ohh ok nice, forgot about that callback.
The thing is, if a player uses money hack in the mod shop it's not going to kick him.
What I could do is check if player has more money when he exits then he had when he entered.
Thanks man, you saved my life.
rep+