View Single Post
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 08-31-2014 , 10:03   Re: About stripping user's weapons
Reply With Quote #9

Quote:
Originally Posted by HamletEagle View Post
Don't forget to set m_fHasPrimary offset ( const m_fHasPrimary = 116, XO_PLAYER = 5, int ) to 0 when you strip user primary weapons.

Edit: set_pdata_int( index, m_fHasPrimary, XO_PLAYER, 0 )

Why you need to do this ?
Because you can't pickup armoury_entity( ground weapons spawned by map ) if you strip a primary weapon without reseting the offset. Anyway, if you pickup a weaponbox( dropped weapon ) and then you drop it, this will fix the problem.
This bug (using strip_user_weapobs()) got fixed with newer releases of amxx IIRC.
mottzi is offline
Send a message via MSN to mottzi