AC Ammo - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: AC Ammo (
/showthread.php?tid=654801)
AC Ammo -
Hunud - 06.06.2018
What is the best way to prevent Ammo Lock (Ammo doesen't go down when shooting) ?
Re: AC Ammo -
Sew_Sumi - 07.06.2018
We just had a thread last week that was talking about ammo, mainly because someone was using the wrong function to get the ammo out...
What function are you using to get the ammo value?
Otherwise what anti-cheat are you using?
Re: AC Ammo -
RogueDrifter - 07.06.2018
I really wonder why do people ask these questions without checking the existing anti cheats
https://pastebin.com/mdS4rBuF
You can see how I checked for the change in ammo after and before the bullet was fired while making a few exceptions for rapid weapons by setting a timer check to avoid false positives, surely lag can cause into some problems but very rarely it would. Just gotta make sure you got a decent desync checker (i provided one) and a decent ping checker (i also provided the same one).
Re: AC Ammo -
Hunud - 07.06.2018
Thanks
Re: AC Ammo -
RogueDrifter - 07.06.2018
If u want the ready download link
https://github.com/RogueDrifter/Anti...aster/rAgc.inc
Cuz the pastebin version is kinda outdated