11.09.2013, 11:04
I guess there are few ways. The first thing comes to my mind is:
Check in OnPlayerKeyStateChange if the newkeys is KEY_FIRE and if they hold a weapon that it uses ammo (to prevent weapons such as knife etc). When a player shoots, the callback I mentioned will be called so you can get the ammo. The next time will be called again, compare the ammo with the previous you stored somewhere. If the difference is 0, then he's using cheats.
Check in OnPlayerKeyStateChange if the newkeys is KEY_FIRE and if they hold a weapon that it uses ammo (to prevent weapons such as knife etc). When a player shoots, the callback I mentioned will be called so you can get the ammo. The next time will be called again, compare the ammo with the previous you stored somewhere. If the difference is 0, then he's using cheats.