View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0007623||Multi Theft Auto : San Andreas||Server||public||2013-05-15 02:20||2013-05-31 16:06|
|Platform||Linux||OS||CentOS 6||OS Version||64 bits|
|Target Version||1.3.3||Fixed in Version||1.3.3|
|Summary||0007623: getPedTotalAmmo sometimes returns 0 while player is aiming (Slot 8)|
This is probably a fault in logic or dyssynchrony of explosive ammo.
The function getPedTotalAmmo(player, 8), sometimes returns 0 while player is aiming with other weapon slot (Eg: swith and aim with ak47)
|Steps To Reproduce|
The script below is used with a timer to give 1 Satchel to players who are within a collshape, but some players are aiming with weapon to get more than 5.
function giveSlotWeapon(player, weapon, ammo, maxAmmo)
|Tags||No tags attached.|
Couldn't reproduce getPedTotalAmmo returning 0, but found another issue with updating the client's ammo getting out of sync with the Server which lead to the same outcome as you described.
Please retest in a 1.4 nightly from r5410 onwards.
Well, I just tested and it works fine for me now. But it'd be better if someone else could test it again too.
Btw, can this be backported to 1.3.2 please? :)
Fixed in http://code.google.com/p/mtasa-blue/source/detail?r=5410