SA-MP Forums Archive
Anti Fly hack Problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Anti Fly hack Problem (/showthread.php?tid=529097)



Anti Fly hack Problem - MBilal - 31.07.2014

I get this Fs From samp forums
PHP код:
Under OnPlayerUpdate
new Float:animXFloat:animYFloat:animZ;
new 
aNim GetPlayerAnimationIndex(playerid);// this is for Swimming Fly hack
GetPlayerPos(playeridanimXanimYanimZ);
if((
aNim >= 1538) && (aNim <= 1542) && animZ 5)
{    
SendClientMessage(playeridCOLOR_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(playeridCOLOR_YELLOW"You have been banned from the server. Reason: Fly Hack");
//     Ban(playerid);

Plz Find the Problem And Fix It i am using it OnPlayerUpdate


Re: Anti Fly hack Problem - Stinged - 31.07.2014

Which one of them doesn't work? Or both?


Re: Anti Fly hack Problem - MBilal - 31.07.2014

Dude the see the 2nd One its making Problem !! it banned hacker also banned innocent players who are standing on car roof or some time sitting in Car as passenger


Re: Anti Fly hack Problem - Stinged - 31.07.2014

Calm the fuck down lol
pawn Код:
if(GetPlayerAnimationIndex(playerid))
{
    new alib[32], animame[32];
    GetAnimationName(GetPlayerAnimationIndex(playerid), animlib, sizeof(animlib), animname, sizeof(animname));
    if(!strcmp(animlib, "PARACHUTE", true) && !strcmp(animname, "FALL_SkyDive_Accel", true)) // Player has the parachute animation
    {
        if(GetPlayerWeapon(playerid) != 46) // Checking if the player doesn't have a parachute
        {
            // ...
        }
    }
}