25.06.2015, 00:09
Some anti-Air Break to adapt in my gamemode? researched, most find only filterscripts, and some are not functional.
new Float:animX, Float:animY, Float:animZ;
new anim = GetPlayerAnimationIndex(playerid);
GetPlayerPos(playerid, animX, animY, animZ);
if((anim >= 1538) && (anim <= 1542) && animZ > 5)
{
BanEx(playerid, "Fly hack");
return 1;
}
Try this one :
PHP код:
|
This code makes no sense. You're not even checking the speed of the player.
|
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.
|
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.
|