28.01.2013, 19:42
Alter your if statements so that they only proceed if the player is not an admin. So something like this:
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:
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.
or
If 1, execute the anti-cheat code. Do nothing if it's 0.
pawn Код:
if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK && !IsPlayerAdmin(playerid))
Next create a global variable by adding this to the top of your script:
pawn Код:
new HackTest;
pawn Код:
if(HackTest == 1)
pawn Код:
if(HackTest == 0)