Anti speed hacks
#6

You need to change this to 170.00 - 180.0 or 181.5 it's the wrong calculation for speed. Put some output to see what the speed is showing when you try and speed cheat lastly your going return crazy for no reason...

pawn Код:
public CheckHacks(playerid)
{
    new string[128];
    if(GetVehicleSpeed(GetPlayerVehicleID(playerid)) > 300)
    {
        if(SpeedHackWarns[playerid] < 2)
        {
            SpeedHackWarns[playerid] ++;
            format(string,sizeof(string),"[SERVER] Speed hack detection. Warning : %d/3.",SpeedHackWarns[playerid]);
            SendClientMessage(playerid,COLOR_ADMIN,string);
        }
        else if(SpeedHackWarns[playerid] >= 2)
        {
            SpeedHackWarns[playerid] =0;
            format(string,sizeof(string),"[SERVER] Speed hack detection. Warning : %d/3.",SpeedHackWarns[playerid]);
            SendClientMessage(playerid,COLOR_ADMIN,string);
            Banning[playerid] =1;
            SetTimer("BanPlayer",700,0);
            format(string,sizeof(string),"[AUTO ADMIN] %s(%d) has been automatically banned by our anti-cheat. Reason : Speed Hacks.",PlayerName(playerid),playerid);
            SendClientMessageToAll(COLOR_ADMIN,string);
        }
    }
    return 1;
}
Reply


Messages In This Thread
Anti speed hacks - by rakshith122 - 09.03.2014, 10:11
Re: Anti speed hacks - by rakshith122 - 09.03.2014, 10:25
Re: Anti speed hacks - by rakshith122 - 09.03.2014, 11:14
Re: Anti speed hacks - by rakshith122 - 09.03.2014, 11:43
Re: Anti speed hacks - by rakshith122 - 09.03.2014, 15:40
Re: Anti speed hacks - by Pottus - 09.03.2014, 16:08

Forum Jump:


Users browsing this thread: 2 Guest(s)