Левых срабатываний нету,
Создать stock AntiCheats() и туда все античиты кидать
Код
new Float:distance2 = 400;
new Float:currentPos[ 3 ], Float:distance;
GetPlayerPos( playerid, currentPos[ 0 ], currentPos[ 1 ], currentPos[ 2 ] );
if(IsPlayerInAnyVehicle(playerid)) distance2 = 500;
else distance2 = 200;
distance = floatround( GetPlayerDistanceFromPoint( playerid, PlayerInfo[ playerid ][ pPos_x ], PlayerInfo[ playerid ][ pPos_y ], PlayerInfo[ playerid ][ pPos_z] ) );
if(GetPVarInt(playerid, "AntiBreik") == 0 && GetPVarInt(playerid, "AFK_Time") < 2 && AvtoSalonOn[playerid] == 0 && PlayerInfo[playerid][pAdmin] == 0)
{
if(distance > distance2)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Вы кикнуты по подозрению в читерстве (#0111)");
SendClientMessage(playerid,COLOR_LIGHTRED,"Если произошла ошибка, отпишитесь на форуме: Gold-Rp.Com");
SendMes(playerid, COLOR_REDD, "(PLAYER: X - %.1f, Y - %.1f, Z - %.1f, DISTANCE - %.1f)",currentPos[ 0 ],currentPos[ 1 ],currentPos[ 2 ],distance);
format(String, sizeof(String),"< Warning >: %s был кикнут по подозрению в читерстве [Cleo TP] ",Name(playerid),playerid);
ABroadCast(COLOR_REDD,String,1);
Kick ( playerid ) ;
}
}
if(GetPVarInt(playerid, "AntiBreik") == 0)
{
PlayerInfo[ playerid ][ pPos_x ] = currentPos[ 0 ];
PlayerInfo[ playerid ][ pPos_y ] = currentPos[ 1 ];
PlayerInfo[ playerid ][ pPos_z ] = currentPos[ 2 ];
}