14.12.2010, 21:44
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)
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)