08.02.2017, 04:25
find the anti-wep hack of your gamemode script
then either you remove it and make your own anti-hack(You can just use the current anti-hack and edit it to your liking like adding variables to your player defining if he should be checked or he should not be checked.");
example:
that's just an example though, there are a lot of ways and mine works on my script since I create my own wephack as much as possible or add my own touch on a gamemode anti-cheats so that each time I want to tweak something on the server that needs to Deny the anti-hack check I can do it easily.
if you use my example don't forget to to set the variable to 0 again or else the anti-cheats won't work and DeletePVar on Disconnect coz the PVariables won't get deleted until the gamemode closes so when the player logs in again he will get the PVar again.
That's all I can say
then either you remove it and make your own anti-hack(You can just use the current anti-hack and edit it to your liking like adding variables to your player defining if he should be checked or he should not be checked.");
example:
PHP код:
new Float:health;
GetPlayerHealth(playerid, health);
if(health >= 0) //coz sometimes the health goes negative, yes you don't see it but it happens that's what causes a bug
{
SetPVarInt(playerid, "DenyHackCheck" 1);
return 1;
}
if(GetPVarInt(playerid, "DenyHackCheck") == 1) { return 0; } //this will fail the script from processing any details for the anti-health hack. Which means it sent a false statement.
if you use my example don't forget to to set the variable to 0 again or else the anti-cheats won't work and DeletePVar on Disconnect coz the PVariables won't get deleted until the gamemode closes so when the player logs in again he will get the PVar again.
That's all I can say