Posts: 1,233
Threads: 269
Joined: Oct 2008
Reputation:
0
Put me on right track, I'm thinking and can't figure out how is it possible to create anti ammo hack, not infinite one (that's comparing ammo stuff so far i know) but like anti spawn ammo, if you have gun and then you spawn like 50 ammo, how can I counter that?
Posts: 3,004
Threads: 12
Joined: May 2011
By keeping track of the weapons you give him.
When he switches a weapon OnPlayerUpdate is triggered, then you can check whether you gave him that weapon before or not.
Is a one way to protect against weapon spawning.
You can check how other anti cheats are doing it.
EDIT:
https://sampwiki.blast.hk/wiki/OnPlayerWeaponShot you can play with it to track ammo (if you have lagcomp on)