Help with anti armour hack!
#1

Anti Armour Hack


When i connect to the server i get instantly banned when im spawning for armout hack and i dont see why!

My Anti Armour Hack:
pawn Код:
new pArmour[MAX_PLAYERS];

public OnPlayerSpawn(playerid)
{
    AntiCheat_SetPlayerArmour(playerid, 0);
    return 1;
}

public OnPlayerUpdate(playerid)
{
    new Float:Armour;
    if(GetPlayerArmour(playerid, Armour) > pArmour[playerid])
    }
        SendClientMessage(playerid, -1, ""Red"AntiCheat: You've got banned for armour cheating! ");
        format(string, sizeof(string), ""Red"AntiCheat: %s Banned | Reason: Armour Cheats! ", GetName(playerid));
        SendClientMessageToAll(-1, string);
        BanEx(playerid, "Banned By: SERVER | Reason: Armour Cheats! ");
    }
    else if(GetPlayerArmour(playerid, Armour) < pArmour[playerid])
    {
         pArmour[playerid] = GetPlayerArmour(playerid, Armour);
    }
    return 1;
}

stock AntiCheat_SetPlayerArmour(playerid, amount)
{
    pArmour[playerid] = amount;
    SetPlayerArmour(playerid, amount);
}
Do anyone know why im getting instant banned on spawn?

Forgot the GetName stock!
Edit:
pawn Код:
stock GetName(playerid)
{
    new pName[24];
    GetPlayerName(playerid, pName, 24);
    return pName;
}
Reply


Messages In This Thread
Help with anti armour hack! - by paul988 - 27.02.2013, 14:55
Re: Help with anti armour hack! - by Infinity90 - 27.02.2013, 15:06
Re: Help with anti armour hack! - by paul988 - 27.02.2013, 15:09
Re: Help with anti armour hack! - by zxc1 - 27.02.2013, 15:10
Re: Help with anti armour hack! - by paul988 - 27.02.2013, 15:11
Re: Help with anti armour hack! - by Vince - 27.02.2013, 15:14
Re: Help with anti armour hack! - by Glad2BeHere - 27.02.2013, 15:18
Re: Help with anti armour hack! - by paul988 - 27.02.2013, 15:24
Re: Help with anti armour hack! - by paul988 - 27.02.2013, 15:55
Re: Help with anti armour hack! - by Vince - 27.02.2013, 16:14

Forum Jump:


Users browsing this thread: 1 Guest(s)