new AntiFly[ MAX_PLAYERS ];
ONPLAYERCONNECT
AntiFly[ playerid ] = 0;
onplayerdisconect
AntiFly[ playerid ] = 0;
//timer
timer antiFlyTimer[1000](playerid) return AntiFly[ playerid ] = 0;
task cheats[1000]() {
new Float: animposX, Float: animposY, Float: animposZ;
GetPlayerVelocity(i, animposX, animposY, animposZ);
if(animposX <= -0.800000 || animposY <= -0.800000 || animposZ <= -0.800000 && GetPlayerAnimationIndex(i) == 1008) {
if(GetPlayerSurfingVehicleID(i) == INVALID_VEHICLE_ID && !IsABike(gLastCar[i]) && PlayerInfo[i][pAdmin] == 0) {
va_SendClientMessageToAll(COLOR_RED2, "AntiCheat >> %s kicked from AdmBot. Reason: Cheat( Fly-Hack )", GetName( i ) );
KickEx(i);
}
}
}
Incerca