anti-hacks.
#2

It depends on what kind of hack you are attempting to detect. An anti-cheat system that covers all aspects of hacking will consist of several parts to account for several different cases. For example, a system to prevent a player from hacking money will consist of saving the player's money to some variable, giving the player the amount of money they should have, and then checking over time to make sure that player's money is equal to the amount in the variable.

When creating a system like the above I would recommend creating a new function (such as GivePlayerSafeMoney) which will not only give the player the amount of money you desire, but it will automatically set their variable to include the money you are giving the player. That way you don't need to worry about forgetting to change the variable when you give the player money, resulting in the player being accidentally banned.

Edit: The same can go for a weapon system. If you save the weapons a player has to a variable and then set the server to detect a discrepancy between weapons a player has and what he variable says, you can detect when a player has a spawned a weapon illegitimately.
Reply


Messages In This Thread
anti-hacks. - by audriuxxx - 21.04.2013, 11:58
Re: anti-hacks. - by RVRP - 21.04.2013, 13:12
Re: anti-hacks. - by Alex Magaсa - 21.04.2013, 13:18
Re: anti-hacks. - by audriuxxx - 21.04.2013, 14:16

Forum Jump:


Users browsing this thread: 1 Guest(s)