Posts: 1,114
Threads: 183
Joined: Apr 2012
Reputation:
0
Wich is the best [Plugin] or [Filterscript] AntiCheater?
That is easy to use.
Posts: 882
Threads: 50
Joined: Jun 2012
Reputation:
0
18.02.2014, 05:22
(
Последний раз редактировалось Yashas; 18.02.2014 в 10:24.
)
If you are doing your own anti-cheat then use this.Almost every anti-cheat uses timers and OPU.
Use Callbacks when ever possible instead of timers or OnPlayerUpdate.
For example,
*For checking weapons or ammo, you could use OnPlayerKeyStateChange(because this callback will be triggered when the player shoots or changes weapon)
*Using OnPlayerGiveDamage or OnPlayerTakeDamage to check for health/armour hacks instead of a loop.
*Using OnVehicleStreamIn to check if the player teleported the vehicle(The vehicle position will be saved when the Vehicle Streams Out and when Streamed In check the pos if its within some range if not it was teleported.Must take care of respawns too to avoid innocent kicks/bans.).
*OnPlayerStreamIn for checking Ping Issues
*Using OnPlayerStateChange to determine Spectate Hacks(I don't know if it works) or jetpack hacks.
By using these callbacks you will reduce load on your server and save many CPU cycles and as a result your lag or ping will be reduced.
Posts: 609
Threads: 93
Joined: Jul 2013
Reputation:
0
It is always best to write your own anti cheat system. If you do it your self you will understand what everything does. I recommend making everything server side so if someone hacks their money it will just go straight back to their original value they had before. You need to save their cash in a save file or something like that. And make a timer that will check every second. GetPlayerMoney(playerid); and then if their money is not the same as the saved cash then it will "GivePlayerMoney".
Posts: 882
Threads: 50
Joined: Jun 2012
Reputation:
0
Its not a good idea to write an anti-cheat yourself until you do some study on existing anti-cheats.
@Blademaster680 Vending Machines? :P