SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 20/03/2017, 08:31 PM   #1
andrejc999
Big Clucker
 
Join Date: Jun 2014
Posts: 91
Reputation: 2
Default Anti money hack problem

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:

Code:
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.
andrejc999 is offline   Reply With Quote
Old 20/03/2017, 08:37 PM   #2
Troydere
Gangsta
 
Troydere's Avatar
 
Join Date: Feb 2017
Location: Venezuela
Posts: 644
Reputation: 117
Default Re: Anti money hack problem

You could help yourself with the use of this callback

http://wiki.sa-mp.com/wiki/OnEnterExitModShop

You could disable your AC when they enter the modshop, update the variables when they exit and make it run again.
Troydere is online now   Reply With Quote
Old 20/03/2017, 08:41 PM   #3
andrejc999
Big Clucker
 
Join Date: Jun 2014
Posts: 91
Reputation: 2
Default Re: Anti money hack problem

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+
andrejc999 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] Anti-Cheat ANTIFLY\ANTI GOD\ANTI SKIN BUG\ANTI MONEY HACK\ANTI JETPACK HACK\ANTI GODOFCARS\ANTI FAKEKILL RedMF Lanšamentos/Releases 12 22/10/2016 05:14 AM
Anti Money Hack Problem Problems Scripting Help 3 30/06/2014 08:57 PM
Money Anti-hack problem (really need help plz! :( ) Panormitis Help Archive 5 15/05/2011 10:02 AM
[HELP] anti money hack problem X_X leingod Help Archive 4 11/04/2011 12:59 PM


All times are GMT. The time now is 08:55 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.