Anti infinite ammo bug
#1

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?
Reply
#2

You need to check multiple times because of poor sync. I'd rather check in OnPlayerUpdate rather than using a timer though.
Reply
#3

same problem, with onplayerupdate, any other suggestion?
Reply
#4

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)
Reply
#5

Quote:
Originally Posted by Ner0x96
Посмотреть сообщение
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)
some guns like sniper, country rifle and some too have no reload animation so they can be make bugs and innocent players will get kicked or banned.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)