Posts: 57
Threads: 20
Joined: Jul 2012
Reputation:
0
I just added a anti-weapon/ammo hack to my server, when someone shoots with a minigun for exemple, the callback OnPlayerWeaponShot do this pMinigun[playerid] -= 1;, it's a global variable. I have a 1 sec timer that check if GetPlayerAmmo it's equal with pMinigun[playerid], but that give's me false positive when i shoot, what can i do?
Posts: 920
Threads: 113
Joined: Nov 2009
Reputation:
0
You need to check multiple times because of poor sync. I'd rather check in OnPlayerUpdate rather than using a timer though.
Posts: 57
Threads: 20
Joined: Jul 2012
Reputation:
0
same problem, with onplayerupdate, any other suggestion?
Posts: 68
Threads: 7
Joined: Oct 2014
You can check if the player make the reload animation while the player is shooting and if doesn't just kick him for possible infinite ammo cheat.. (I'm not sure, but I think it can be possible)