Help with anti-health
#2

Because players spawn with 100 health. The cases where the player gets kicked happens when OnPlayerUpdate gets called in the middle of the player spawning and you setting their health to 98. Your 'anticheat' notices the player has more than 99 of health (100) and kicks them.

For the solution, use player timers instead of OnPlayerUpdate, kill the timer when the player dies and create it again after the player spawns and you set him 98 of health.

I'll use my free speech to point out that this way of anticheat is pretty useless now, it most likely won't work with newer kind of cheats where the cheat doesn't set the health to 100 but to the one the server sets.
Reply


Messages In This Thread
Help with anti-health - by ,TomY' - 21.08.2017, 07:15
Re: Help with anti-health - by Toroi - 21.08.2017, 08:41
Re: Help with anti-health - by HydraHumza - 21.08.2017, 09:50

Forum Jump:


Users browsing this thread: 1 Guest(s)