Anti money hack problem
#1

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.
Reply
#2

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.
Reply
#3

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+
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)