SA-MP Forums Archive
anti-Air Break to adapt in my gamemode? - 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-Air Break to adapt in my gamemode? (/showthread.php?tid=579168)



anti-Air Break to adapt in my gamemode? - JoshNudock - 25.06.2015

Some anti-Air Break to adapt in my gamemode? researched, most find only filterscripts, and some are not functional.


Re : anti-Air Break to adapt in my gamemode? - KillerDVX - 25.06.2015

Try this one :

PHP код:
new Float:animXFloat:animYFloat:animZ;
new 
anim GetPlayerAnimationIndex(playerid);
GetPlayerPos(playeridanimXanimYanimZ);
if((
anim >= 1538) && (anim <= 1542) && animZ 5)
{
    
BanEx(playerid"Fly hack");
    return 
1;

EDIT: Under OnPlayerUpdate. ^^


Re: anti-Air Break to adapt in my gamemode? - ChromeAmazing - 25.06.2015

Or you can use strongly built includes found in the includes section of the forum.


Re: Re : anti-Air Break to adapt in my gamemode? - Shetch - 25.06.2015

Quote:
Originally Posted by KillerDVX
Посмотреть сообщение
Try this one :

PHP код:
new Float:animXFloat:animYFloat:animZ;
new 
anim GetPlayerAnimationIndex(playerid);
GetPlayerPos(playeridanimXanimYanimZ);
if((
anim >= 1538) && (anim <= 1542) && animZ 5)
{
    
BanEx(playerid"Fly hack");
    return 
1;

EDIT: Under OnPlayerUpdate. ^^
This code makes no sense. You're not even checking the speed of the player.


Re : anti-Air Break to adapt in my gamemode? - KillerDVX - 25.06.2015

Did you check ? : https://sampwiki.blast.hk/wiki/GetPlayerAnimationIndex

KillerDVX,



Re: Re : anti-Air Break to adapt in my gamemode? - rymax99 - 25.06.2015

Quote:
Originally Posted by KillerDVX
Посмотреть сообщение
That code still makes no sense whatsoever.


Re: Re : anti-Air Break to adapt in my gamemode? - ev0lution - 25.06.2015

Quote:
Originally Posted by Shetch
Посмотреть сообщение
This code makes no sense. You're not even checking the speed of the player.
Quote:
Originally Posted by rymax99
Посмотреть сообщение
That code still makes no sense whatsoever.
Don't be rude, particularly when you have no idea what you're talking about. That code will detect a certain cheat tool which has a "fly" mode - it makes you "swim" through the air. The code given checks if the player is using a swimming animation and is above the ground (z > 5), which will detect that particular cheat. It's not anti-airbreak, but it is 100% accurate detection against a common fly cheat.


Re: Re : anti-Air Break to adapt in my gamemode? - rymax99 - 25.06.2015

Quote:
Originally Posted by ev0lution
Посмотреть сообщение
Don't be rude, particularly when you have no idea what you're talking about. That code will detect a certain cheat tool which has a "fly" mode - it makes you "swim" through the air. The code given checks if the player is using a swimming animation and is above the ground (z > 5), which will detect that particular cheat. It's not anti-airbreak, but it is 100% accurate detection against a common fly cheat.
The title reads "anti airbreak" - the code he provided isn't going to do anything for airbreak.


Re : Re: Re : anti-Air Break to adapt in my gamemode? - KillerDVX - 25.06.2015

Quote:
Originally Posted by ev0lution
Посмотреть сообщение
Don't be rude, particularly when you have no idea what you're talking about. That code will detect a certain cheat tool which has a "fly" mode - it makes you "swim" through the air. The code given checks if the player is using a swimming animation and is above the ground (z > 5), which will detect that particular cheat. It's not anti-airbreak, but it is 100% accurate detection against a common fly cheat.
Hmm.. Thanks buddy ^^.

So Josh, here you go a Filterscript of the Anti Air-Break :

http://www.solidfiles.com/d/JjaV/

Hope it helps.

KillerDVX,



Re: anti-Air Break to adapt in my gamemode? - JaydenJason - 25.06.2015

https://sampforum.blast.hk/showthread.php?tid=474196