13.01.2012, 11:45
Try as this
If its still crash problem isnt here, but in functions you use
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;
}