Anti-NOP Hacks (Not accurate)
#2

pawn Code:
forward NOPHacksCheck();
public NOPHacksCheck()
{
    static MaxP;
    if(!MaxP)
        MaxP = GetMaxPlayers();

    // NOP Vehicle Cheat
    for(new playerid=0; playerid != MaxP; playerid++)
        if(IsPlayerConnected(playerid))
        {
            new vehicleid = GetPlayerVehicleID(playerid);
            if(!(0 < vehicleid < MAX_VEHICLES)) continue;
            if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
            {
                if(IsLeoVehicle(vehicleid) && PlayerInfo[playerid][pFac] != 1 || IsTruckerVehicle(vehicleid) && PlayerInfo[playerid][pJob] != JOB_TRUCKER)
                {
                    new string[128];
                    format(string, sizeof(string), "AdmWarn: %s(%d) might be Desynced or using NOP hacks. (Driving Restricted Vehicle - Vehicle Model: %d))", RPN(playerid), playerid, GetVehicleModel(vehicleid));
                    SendAdminMessage(COLOR_DARKRED, 1, string);
                    RemovePlayerFromVehicle(playerid);
                }
            }
        }

    return 1;
}
Reply


Messages In This Thread
Anti-NOP Hacks (Not accurate) - by Patrick - 12.09.2013, 14:54
Re: Anti-NOP Hacks (Not accurate) - by Jefff - 12.09.2013, 15:03
Re: Anti-NOP Hacks (Not accurate) - by Patrick - 12.09.2013, 15:05
Re: Anti-NOP Hacks (Not accurate) - by Jefff - 12.09.2013, 15:15
Re: Anti-NOP Hacks (Not accurate) - by Patrick - 12.09.2013, 15:18
Re: Anti-NOP Hacks (Not accurate) - by Jefff - 12.09.2013, 15:20
Re: Anti-NOP Hacks (Not accurate) - by RebeloX - 12.09.2013, 15:22
Re: Anti-NOP Hacks (Not accurate) - by Patrick - 12.09.2013, 15:27
Re: Anti-NOP Hacks (Not accurate) - by Patrick - 12.09.2013, 15:31
Re: Anti-NOP Hacks (Not accurate) - by Patrick - 12.09.2013, 16:06

Forum Jump:


Users browsing this thread: 3 Guest(s)