Good day SA-MP i got a minor problem with my anticheat..
It seems like it doesn't really wants to do it correctly, i dont want it to send any warning messages to the admins when the ''cheater'' is above admin lvl 5.
Код:
if(AntiMoneyHack == 1)
{
if(PlayerGotSpottedRecently[i] == 0)
{
if(Checked[i] == 0)
{
if(GetPlayerMoney(i) != ScriptMoney[i])
{
if(PlayerInfo[i][pAdmin] > 5)
/*{
format(string, sizeof(string), "%s (%d), Has been kicked by The Anticheat Peter Griffin for Possible Money Hacking.", plname, i);
SendClientMessageToAll(COLOR_NICERED, string);
format(string, sizeof(string), "You have Been Kicked by The Anticheat For Possible Weapon Money Hacking ($%d)",PlayerInfo[i][pCash] - GetPlayerMoney(i));
SendClientMessage(i,COLOR_LIGHTBLUE, string);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] Anticheat Has Kicked %s for: Money Hacking ($%d)",d,m,y,h,mi,s,plname,PlayerInfo[i][pCash] - GetPlayerMoney(i));
KickLog(string);
Kick(i);
}*/
format(string, sizeof(string), "[PETER]: %s Is possibly Using Money Hacks; Check him inmediately!!", plname);
SendAdminMessage(COLOR_LIGHTRED, string);
PlayerSuspicious[i] = 1;
PlayerSuspiciousReason[i] = 2;
PlayerSuspiciousMoney[i] = PlayerInfo[i][pCash] - GetPlayerMoney(i);
PlayerGotSpottedRecently[i] = 1;
SetTimerEx("ResetAcWarn", 300000, 0, "i", i);
}
}
}