anti cheat error
#8

pawn Код:
#include <a_samp>
#include <foreach>
#define BELA       "{FFFFFF}"
#define CRVENA     "{F81414}"

#define MAX_ARMOUR (99.0) // Max Armour allowed for a player is 99.0
#define DIALOG_PRAVILA (1000) // 1000 = DIALOG ID

public OnFilterScriptInit()
{
    return 1;
}

public OnPlayerUpdate(playerid)
{
    new Float:Armour;
    GetPlayerArmour(playerid, Armour);
    #if defined MAX_ARMOUR
    if(Armour == MAX_ARMOUR) ////////////////////////////////////20 line
    {
        TogglePlayerControllable(playerid, false);
        SetPlayerPos(playerid, 1941.1534,-1100.2391,-23.7885);
        ShowPlayerDialog(playerid, DIALOG_PRAVILA,DIALOG_STYLE_MSGBOX,"Anti-Hack", "{FFCC00}[Anticheat]"BELA"Kikovani ste sa servera\nRazlog kick-a:"CRVENA" Armour Hack","Ok","");
        BanEx(playerid, "Armour Hack");
    }
    #endif
    return 1;
}
Reply


Messages In This Thread
anti cheat error - by lanix - 17.01.2015, 15:30
Re: anti cheat error - by mahdi499 - 17.01.2015, 15:33
Re: anti cheat error - by lanix - 17.01.2015, 15:55
Re: anti cheat error - by mahdi499 - 17.01.2015, 16:12
Re: anti cheat error - by lanix - 17.01.2015, 16:18
Re: anti cheat error - by mahdi499 - 17.01.2015, 16:30
Re: anti cheat error - by lanix - 17.01.2015, 16:32
Re: anti cheat error - by Lynn - 17.01.2015, 16:45
Re: anti cheat error - by lanix - 17.01.2015, 16:49
Re: anti cheat error - by Lynn - 17.01.2015, 16:51

Forum Jump:


Users browsing this thread: 1 Guest(s)