[BUG] Weapons don't update as passenger - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [BUG] Weapons don't update as passenger (
/showthread.php?tid=199240)
[BUG] Weapons don't update as passenger -
Joe Staff - 14.12.2010
If you are the passenger of a vehicle and switch weapons via SetPlayerArmedWeapon, GetPlayerWeapon will still return what the player entered the vehicle with.
Example:
Player enters passenger seat with Weapon ID 31 (M4)
Player switches weapon via SetPlayerArmedWeapon (/givegun, /switchweapon, etc) to Weapon ID 29 (MP5)
GetPlayerWeapon will return Weapon ID 31(M4) even though the player sees himself holding Weapon ID 29 (MP5)
EDIT
This has already been posted (I just realised)
Re: [BUG] Weapons don't update as passenger -
decondelite - 15.12.2010
In fact, if you drive by, as passenger OR as driver, hold weapons and their ammo don't update at all.