View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0007719||Multi Theft Auto : San Andreas||Server||public||2013-07-19 23:25||2018-09-02 17:12|
|Status||closed||Resolution||unable to reproduce|
|Platform||OS||OS Version||1.3.3 r5624|
|Target Version||Fixed in Version|
|Summary||0007719: getPedTotalAmmo() & getPedAmmoInClip() gets crazy after setWeaponAmmo()|
getPedTotalAmmo() and getPedAmmoInClip() has returning different values on server (incorrect) and client (correct).
See my code. setWeaponAmmo() is needed for me because I use that for custom clip size in weapons.
|Steps To Reproduce|
|Tags||No tags attached.|
I've seen this problem at lot myself.
Like in the anti cheat I made for detecting ammo cheaters, in the logs for it we get about 150 lines a day saying players have like 50-60k ammo when they should have very little or even 0, like so:
slot: 3 actual: 34563 should: 0
Some of these might even be cheaters but at least 90% aren't.
Are you sure it's only after setWeaponAmmo? I don't think we use setWeaponAmmo but we definitely use giveWeapon to add on more ammo, which is probably the same routines.
Hm.. It was bugged too without setWeaponAmmo. In both cases first weapon must be always grenade.
Unable to reproduce in Multi Theft Auto v1.5.5-release-12430.