Idea for making anti-cheat against AirBreak
#1

I need only good idea how to make Anti AirBreak, I will make it alone I am good programer .. but I don't have any idea..

Thanks
Reply
#2

if player fly but is not in plain and if speed more then max speed for on_foot then is airbrake.
Reply
#3

Quote:
Originally Posted by Azazelo
Посмотреть сообщение
if player fly but is not in plain and if speed more then max speed for on_foot then is airbrake.
Thanks first,
How can I check if player fly ?
Reply
#4

Quote:
Originally Posted by tal_peretz
Посмотреть сообщение
Thanks first,
How can I check if player fly ?
Use MapAndreas to check if they're off the ground, GetPlayerVelocity to check if they're going upwards and a timer so that if this continues for 2 seconds or more (maybe 4 seconds or more, you want to avoid false positives), then kick/ban them (or alert online admins). Or if you're feeling more merciful, instead of kicking and banning them right away, warn them and use SetPlayerPosFindZ to put them on the ground.
Reply
#5

Quote:
Originally Posted by Ainseri
Посмотреть сообщение
Use MapAndreas to check if they're off the ground, GetPlayerVelocity to check if they're going upwards and a timer so that if this continues for 2 seconds or more (maybe 4 seconds or more, you want to avoid false positives), then kick/ban them (or alert online admins). Or if you're feeling more merciful, instead of kicking and banning them right away, warn them and use SetPlayerPosFindZ to put them on the ground.
This response was really helpful for me too,i was finding a simple way to detect possible airbreak.A question,i can know if they're off the ground without MapAndreas?I don't use it because it uses alot of RAM.

Thanks and sorry for intruding but i won't make a new topic to avoid spam.Thanks.
Reply
#6

Quote:
Originally Posted by Logitech90
Посмотреть сообщение
This response was really helpful for me too,i was finding a simple way to detect possible airbreak.A question,i can know if they're off the ground without MapAndreas?I don't use it because it uses alot of RAM.

Thanks and sorry for intruding but i won't make a new topic to avoid spam.Thanks.
Use GetPlayerAnimationIndex and GetAnimationName to check if they're doing the 'FALL_*' or 'JUMP_*' animations in the PED anim library.
Reply
#7

Quote:
Originally Posted by Logitech90
Посмотреть сообщение
This response was really helpful for me too,i was finding a simple way to detect possible airbreak.A question,i can know if they're off the ground without MapAndreas?I don't use it because it uses alot of RAM.

Thanks and sorry for intruding but i won't make a new topic to avoid spam.Thanks.
I found this you can use it -
http://forum.sa-mp.com/showthread.ph...ght=MapAndreas

And thanks I tried to make the anti cheat now if I got a problem I gone write here
Reply
#8

I assume i've to check it with a timer and check if their distance from ground is above the normal,right?

@tal_peretz,thanks,i'll take a look.
Reply
#9

What's the correct coordinates above the ground to detect if player is REALLY airbreaking? I mean,+50 x,y,z on foot?Or more?
Reply
#10

Quote:
Originally Posted by Logitech90
Посмотреть сообщение
What's the correct coordinates above the ground to detect if player is REALLY airbreaking? I mean,+50 x,y,z on foot?Or more?
Less. Check how high you can jump and then do like double that. Some people airbreak just to move faster, and don't go very high up, and others will use it to only go like +30 to get on a high ledge or something.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)