20.11.2013, 19:24
Hello, i have this weapons anticheat, it works good but there is a problem..is spamming 10-15 messages every minute.
This is the full code:
And this is what i mean for spam:
This is the full code:
pawn Код:
new AcMessageTimer[MAX_PLAYERS], AcMsg[150];
forward AcMessage(playerid);
public AcMessage(playerid)
{
new weap2=GetPlayerWeapon(playerid);
new WeaponName2[65];
GetWeaponName(weap2,WeaponName2,64);
format(AcMsg,sizeof(AcMsg),"ACMsg: System has detected possible weapon hack of %s at %s(%d).",WeaponName2,PlayerName(playerid),playerid);
SendClientMessageToAdmin(1,-1,RED,AcMsg);
format(AcMsg,sizeof(AcMsg), "8,1%s",AcMsg);
IRC_GroupSay(gGroupID, IRC_ADMIN_CHANNEL,AcMsg);
IRC_GroupSay(gGroupID, IRC_MANAGEMENT_CHANNEL,AcMsg);
return 1;
}
//this is included in the AC public
if(!AllowedWeapon[playerid][GetPlayerWeapon(playerid)] && IsValidWeapon(weap2) && GetPlayerWeapon(playerid) != 46 && (GetPlayerState(playerid) == PLAYER_STATE_ONFOOT && Info[playerid][AdminLevel] == 0))
{
AcMessageTimer[playerid] = SetTimerEx("AcMessage",1000,false,"d",playerid);
}
Quote:
[21:21] <&MG4> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:21] <&MG2> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:21] <&MG4> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:21] <&MG4> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:21] <&MG2> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:21] <&MG2> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:21] <&MG4> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:21] <&MG2> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:21] <&MG4> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:21] <&MG2> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:21] <&MG4> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:21] <&MG3> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:21] <&MG3> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:21] <&MG1> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:21] <&MG3> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:21] <&MG1> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:21] <&MG3> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:21] <&MG1> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:21] <&MG1> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:22] <&MG4> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:22] <&MG2> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:22] <&MG4> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:22] <&MG2> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:22] <&MG4> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:22] <&MG2> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:22] <&MG4> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:22] <&MG2> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:22] <&MG2> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:22] <&MG4> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:22] <&MG2> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:22] <&MG4> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:22] <&MG2> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:22] <&MG4> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:22] <&MG2> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:22] <&MG4> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:22] <&MG2> ACMsg: System has detected possible weapon hack of at MrSnowony(7). [21:22] <&MG4> ACMsg: System has detected possible weapon hack of Chainsaw at MrSnowony(7). [21:22] <&MG3> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:22] <&MG2> ACMsg: System has detected possible weapon hack of Chainsaw at MrSnowony(7). [21:22] <&MG1> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:22] <&MG3> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:22] <&MG1> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:22] <&MG3> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:22] <&MG1> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:22] <&MG3> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:22] <&MG1> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:22] <&MG3> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:22] <&MG1> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:22] <&MG3> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:22] <&MG1> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:22] <&MG3> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:22] <&MG1> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:22] <&MG3> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:22] <&MG1> ACMsg: System has detected possible weapon hack of Desert Eagle at MrSnowony(7). [21:22] <&MG2> ACMsg: System has detected possible weapon hack of at MrSnowony(7). |