pawn Код:
#define fly_distance 30
new debug_anticheat_fly[MAX_PLAYERS];
public anticheat_fly(playerid)
{
new distance = GetPlayerDistanceFromGround(playerid);
if(distance > fly_distance && debug_anticheat_fly[playerid] <= distance) //The player is flying and not falling
{
Ban(playerid);
}
else { debug_anticheat_fly[playerid] = distance; }
}