help with ANTI-CHEAT [need help]
#3

Alter your if statements so that they only proceed if the player is not an admin. So something like this:
pawn Код:
if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK && !IsPlayerAdmin(playerid))
but instead with your own admin stat (if you have one). Also I'd recommend not using OnPlayerUpdate, and instead something like a 5-10 second timer. That would solve admins (you) from being banned.

Next create a global variable by adding this to the top of your script:
pawn Код:
new HackTest;
And in a command somewhere toggle it by first checking the current value of HackTest (0 or 1), and setting it to the opposite of that. Within OnPlayerUpdate or in your timers if you do what I suggested check HackTest's value again.
pawn Код:
if(HackTest == 1)
or
pawn Код:
if(HackTest == 0)
If 1, execute the anti-cheat code. Do nothing if it's 0.
Reply


Messages In This Thread
help with ANTI-CHEAT [need help] - by ZayanImran - 28.01.2013, 19:10
Re: help with ANTI-CHEAT [need help] - by ZayanImran - 28.01.2013, 19:37
Re: help with ANTI-CHEAT [need help] - by zDevon - 28.01.2013, 19:42
Re: help with ANTI-CHEAT [need help] - by ZayanImran - 28.01.2013, 20:39
Re: help with ANTI-CHEAT [need help] - by Jewell - 29.01.2013, 02:18
Re: help with ANTI-CHEAT [need help] - by ZayanImran - 29.01.2013, 10:32
Re: help with ANTI-CHEAT [need help] - by [KHK]Khalid - 29.01.2013, 10:38
Re: help with ANTI-CHEAT [need help] - by ZayanImran - 29.01.2013, 16:01

Forum Jump:


Users browsing this thread: 1 Guest(s)