Вот данный античит как на самп-рп,левых срабатываний не должно быть,Флуда в чат не будет..
В OnPlayerUpdate
Код
new AnimLib[30], AnimName[30], PlayerName[MAX_PLAYERS], String[100];
GetAnimationName(GetPlayerAnimationIndex(playerid) , AnimLib, sizeof(AnimLib), AnimName, sizeof(AnimName));
if(PlayerInfo[playerid][pAdmin] > 0) return 1;
if(GetPlayerSpeed(playerid) > 60 && strcmp(AnimLib, "SWIM", true) == 0 && strcmp(AnimName, "SWIM_crawl", true) == 0)
{
GetPlayerName(playerid, PlayerName[playerid], MAX_PLAYER_NAME);
foreach(new i : Player)
{
if(PlayerInfo[i][pAdmin] > 0 && AntiCheatVar[i] == false)
{
format(String, sizeof(String), "<Warning> Игрок [ID %d]: Возможно использует FlyHack", PlayerName[i], i);
ABroadCast(COLOR_REDD,String,1);
AntiCheatVar[i] = true;
SetTimerEx("AntiCheatTimerEx", 60000, false, "d", i);
}
}
}
в конец мода
Код
forward AntiCheatTimerEx(playerid);
public AntiCheatTimerEx(playerid) AntiCheatVar[playerid] = false;