Anti Fail
#1

pawn Код:
#if defined AntiWeap
public OnPlayerUpdate(playerid)
{
    if(PlayerInfo[playerid][Level] >= 2 && IsPlayerAdmin(playerid))
    {
        return 1;
    }
    else if(GetPlayerInterior(playerid) == 1 && 4 && 6 && 7)
    {
        return 1;
    } else if(GetPlayerInterior(playerid) == 0){
        new weapon, ammo, str[128];
        GetPlayerWeaponData(playerid, 7, weapon, ammo);
        if(GetPlayerWeapon(playerid) == >= 1 && <= 39)
        {
            format(str, sizeof(str), "[FrosTiC AnTi]: %s (%d) has been Kicked by FrosTiC AnTi CheaT. (Reason: Weapon Hacks)",PlayerName(playerid),playerid);
            format(strtofile, sizeof(strtofile), "%s (%d) has been Kicked by FrosTiC AnTi CheaT. (Reason: Weapon Hacks)",PlayerName(playerid),playerid);
            SendClientMessageToAll(pink, str);
            SaveToFile(AntiCheat, string);
            Kick(playerid);
        }
    }
    return 1;
}
#endif
It don't kick if someone hacks a weapon or even if is given a weapon outside of the ammu's
Reply


Messages In This Thread
Anti Fail - by willsuckformoney - 19.08.2010, 23:51
Re: Anti Fail - by Fj0rtizFredde - 19.08.2010, 23:55
Re: Anti Fail - by willsuckformoney - 19.08.2010, 23:56
Re: Anti Fail - by ScottCFR - 20.08.2010, 01:46
Re: Anti Fail - by willsuckformoney - 20.08.2010, 02:13

Forum Jump:


Users browsing this thread: 1 Guest(s)