21.02.2015, 07:17
There's lots of ways to do so, you can look up some Anticheat tutorials.
Personally i use enumerator variable with their health that looks like "PlayerInfo[playerid][Health]".
Then i have a custom damage system, which decreases the players Health-variable and his ingame health.
Thereby i can see if he does not loose health, or if he regenerates his health.
Some people also prefer an easy method, setting his health to 99, then if he has 100 he's probably using a health regeneration cheat.
Personally i use enumerator variable with their health that looks like "PlayerInfo[playerid][Health]".
Then i have a custom damage system, which decreases the players Health-variable and his ingame health.
Thereby i can see if he does not loose health, or if he regenerates his health.
Some people also prefer an easy method, setting his health to 99, then if he has 100 he's probably using a health regeneration cheat.