anti cheat tips
#34

To detect jetpack hacking you can hook SetPlayerSpecialAction and set a variable to true when the special action is a jetpack. Then you can hook OnPlayerSpawn, ClearAnimations, and SetPlayerSpecialAction (for SPECIAL_ACTION_NONE) to set the variable to false.

You should also hook OnPlayerKeyStateChange to detect if the car enter key is pressed and the player isn't moving (0 velocity) and set the variable to false at that time.

Then under OnPlayerUpdate check if GetPlayerSpecialAction equals SPECIAL_ACTION_USEJETPACK and if the variable is false, ban the player.

That's how you make a simple jetpack anticheat in an include.
Reply


Messages In This Thread
anti cheat tips - by cessil - 03.02.2011, 00:56
Re: anti cheat tips - by Haydz - 03.02.2011, 02:32
Re: anti cheat tips - by TheYoungCapone - 03.02.2011, 02:48
Re: anti cheat tips - by cessil - 03.02.2011, 04:13
Re: anti cheat tips - by Krx17 - 03.02.2011, 04:51
Re: anti cheat tips - by Kitten - 03.02.2011, 05:09
Re: anti cheat tips - by cessil - 03.02.2011, 05:15
Re: anti cheat tips - by iggy1 - 03.02.2011, 10:45
Re: anti cheat tips - by cessil - 03.02.2011, 11:13
Re: anti cheat tips - by Vince - 03.02.2011, 11:36
Re: anti cheat tips - by cessil - 03.02.2011, 23:52
Re: anti cheat tips - by admantis - 03.02.2011, 23:57
Re: anti cheat tips - by DRIFT_HUNTER - 04.02.2011, 00:13
Re: anti cheat tips - by cessil - 05.02.2011, 00:21
Re: anti cheat tips - by Lorenc_ - 05.02.2011, 00:32
Re: anti cheat tips - by [94]Shady - 26.09.2011, 23:03
Re: anti cheat tips - by Snipa - 27.09.2011, 01:12
Re : anti cheat tips - by TGameR - 21.12.2011, 22:11
Re: anti cheat tips - by Tee - 21.12.2011, 22:30
Re: anti cheat tips - by [ABK]Antonio - 22.12.2011, 00:11
Re: anti cheat tips - by Tee - 22.12.2011, 02:05
Re: anti cheat tips - by cessil - 22.12.2011, 03:33
Re: anti cheat tips - by Tee - 22.12.2011, 03:43
Re: anti cheat tips - by Gamer_Z - 04.01.2012, 04:35
Re: anti cheat tips - by cessil - 04.01.2012, 05:33
Re: anti cheat tips - by Gamer_Z - 04.01.2012, 09:55
Re: anti cheat tips - by Infinity - 04.01.2012, 10:35
Re: anti cheat tips - by Gamer_Z - 04.01.2012, 11:43
Re: anti cheat tips - by DarkKillerWithPride<3 - 04.01.2012, 13:19
Re: anti cheat tips - by cessil - 05.01.2012, 04:27
Re: anti cheat tips - by Dan.. - 19.11.2012, 17:59
Scripting ways for cheat detection - by Mauzen - 25.11.2012, 20:34
Re: Scripting ways for cheat detection - by Sinner - 25.11.2012, 20:41
Re: Scripting ways for cheat detection - by SuperViper - 25.11.2012, 21:28
Re: anti cheat tips - by cessil - 07.12.2012, 20:38
Re: anti cheat tips - by Forever Alone - 15.12.2012, 10:18
Re: anti cheat tips - by linuxthefish - 15.12.2012, 10:24
Re: anti cheat tips - by Forever Alone - 15.12.2012, 10:27
Re: anti cheat tips - by Konstantinos - 15.12.2012, 10:29
Re: anti cheat tips - by cessil - 15.12.2012, 18:48
Re: anti cheat tips - by ]Rafaellos[ - 20.07.2014, 11:05
Re: anti cheat tips - by UnAngel - 20.07.2014, 23:30
Re: anti cheat tips - by Macluawn - 11.10.2015, 11:50
Re: anti cheat tips - by Morpheine - 19.10.2015, 17:08
Re: anti cheat tips - by MBilal - 19.10.2015, 20:24
Re: anti cheat tips - by Mauzen - 19.10.2015, 21:27
Re: anti cheat tips - by DeitY - 20.10.2015, 01:39
Re: anti cheat tips - by Yashas - 20.10.2015, 06:13
Re: anti cheat tips - by Spmn - 20.10.2015, 07:30
Re: anti cheat tips - by Yashas - 22.10.2015, 12:10
Re: anti cheat tips - by DeitY - 06.11.2015, 11:34
Re: anti cheat tips - by Morpheine - 21.05.2016, 07:07
Re: anti cheat tips - by cessil - 22.05.2016, 03:52
Re: anti cheat tips - by doreto - 22.05.2016, 14:38

Forum Jump:


Users browsing this thread: 1 Guest(s)