31.07.2014, 14:52
I get this Fs From samp forums
Plz Find the Problem And Fix It i am using it OnPlayerUpdate
PHP код:
Under OnPlayerUpdate
new Float:animX, Float:animY, Float:animZ;
new aNim = GetPlayerAnimationIndex(playerid);// this is for Swimming Fly hack
GetPlayerPos(playerid, animX, animY, animZ);
if((aNim >= 1538) && (aNim <= 1542) && animZ > 5)
{ SendClientMessage(playerid, COLOR_YELLOW, "You have been banned from the server. Reason: Sobiet Fly Hack");
SaveIn("BanLog.txt",pstring);
Ban(playerid);
}
// This Anti Fly Detect Hacker But the Problem it ban Innocent Players also Who are Standing Or Car Roof some time Sitting In Car ..
new Float:Pos_x,Float:Pos_y,Float:Pos_z;
new anim = GetPlayerAnimationIndex(playerid); this is For Simple Superman Anti fly hack
GetPlayerVelocity(playerid,Pos_x,Pos_y,Pos_z);
if(Pos_x <= -0.800000 || Pos_y <= -0.800000 || Pos_z <= -0.800000 && anim == 1008)
{
Player[playerid][pBan]=1;
SendClientMessage(playerid, COLOR_YELLOW, "You have been banned from the server. Reason: Fly Hack");
// Ban(playerid);
}

