anti-hacks.
#1

Hi,

I saw in some servers, you can detect if you are using hacks. How to detect it?
Reply
#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
#3

- https://sampforum.blast.hk/showthread.php?tid=268052 [Plugin Anti Cheat]
- http://forum.sa-mp.de/san-andreas-mu...-10-what-else/ [JunkBuster - Beat Difficult]
Reply
#4

No. I have mean, in some server if you have s***** you will be kicked.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)