15.01.2014, 17:59
Quote:
What you are doing is getting and store player health then few lines below you are getting same health and storing it and compare it to unreasonable value.Solution for this to store player health from last check and compare to new health check. You can follow Raza2013 code and fix it. I will suggest you using 1 second global timer (1000 milliseconds) then OnPlayerUpdate where's been called 20-30 times in 1 second.
|
However I fixed this by adding the check to OnPlayerDeath instead, only when a hacker kills another player and is using health/armour hacks, he/she will get banned.
Thanks to everyone for their help.