This anticheat make crashes server
#4

Try as this
pawn Код:
forward HealthArmourCheat();
public HealthArmourCheat()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        new Float:health,Float:armour;;
        GetPlayerHealth(i,health);
        GetPlayerArmour(i,armour);
        if(health == 100.0 || armour == 100.0)
        {
            new string[128],pName[MAX_PLAYER_NAME],reason[32];
            GetPlayerName(i, pName, sizeof(pName));
            Blacklist(pName);
            if(health == 100.0) { reason = "Health"; }
            else if(armour == 100.0) { reason = "Armour"; }
            format(string,sizeof string,"4AC (ID: 505) - %s has been banned for %s hacks. - 100 %s. ",pName,reason,reason);
            IRC_GroupSay(IRC_Group, EchoChan,string);
            format(string, sizeof(string), "%s has been banned for %s hacks. - 100 %s.",reason,reason);
            SendClientMessageToAll(0xFF0000FF, string);
            BanLog(string);
            format(string, sizeof(string), "You have Been Banned by ANTICHEAT. Reason: %s hacks. - 100 %s.", reason,reason);
            SendClientMessage(i,COLOR_LIGHTBLUE, string);
            SendClientMessage(i,COLOR_RED, "To Get Unbanned Post an Unban Request at Our Forums:");
            SendClientMessage(i,COLOR_LIGHTRED, "Don't Evade, Otherwise you wont get unbanned.");
            format(string, sizeof(string), "AntiCheat - %s Hack.",reason);
            BanEx(i,string);
        }
    }
    return 1;
}
If its still crash problem isnt here, but in functions you use
Reply


Messages In This Thread
This anticheat make crashes server - by Face9000 - 13.01.2012, 10:07
Re: This anticheat make crashes server - by mineralo - 13.01.2012, 11:27
Re: This anticheat make crashes server - by davve95 - 13.01.2012, 11:42
Re: This anticheat make crashes server - by Voldemort - 13.01.2012, 11:45

Forum Jump:


Users browsing this thread: 1 Guest(s)