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);
}
[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). |
KillTimer(AcMessageTimer[playerid]);
public AntiCheat(playerid)
{
if(!AllowedWeapon[playerid][GetPlayerWeapon(playerid)] && IsValidWeapon(weap2) && GetPlayerWeapon(playerid) != 46 && (GetPlayerState(playerid) == PLAYER_STATE_ONFOOT && Info[playerid][AdminLevel] == 0))
{
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;
}
I hope you have
pawn Код:
|
That timer is for delaying the ac message (for some reason)
You probably create a repeating timer somewhere (I guess OnPlayerSpawn) but never kill it in OnPlayerDeath (or maybe just in OnPlayerDisconnect) (just a guess, we can't see this) |
Show us your SendClientMessageToAdmin stock or public, your loop might be the problem
|
SendClientMessageToAdmin(adminlvl, exception, colour, message[])
{
foreach(new i : Player)
{
if(Info[i][AdminLevel] >= adminlvl && i != exception && Info[i][Security])
{
SendClientMessage(i, colour, message);
}
}
}
I hope you have
pawn Код:
|
SendClientMessageToAdmin(adminlvl, exception, colour, message[])
{
foreach(Player, i)
{
if(Info[i][AdminLevel] >= adminlvl && i != exception && Info[i][Security]) SendClientMessage(i, colour, message);
}
}
pawn Код:
|