Code:
write_byte(pev(s_iPlrId, pev_body));
Even though, it won't change much, this is wrong. Not sure why people do the same mistake, but it should be the weapon pev_body, not player's.
And just for information, to let you know, but I won't ask you to change of course: AMXX 1.8.3 integrates a new
get_pdata_bool() native ; and instead of using
m_iUserPrefs with flags, you can use directly the full offset and real name with this native :
Code:
m_bVGUIMenus /* 2040 */
m_bShowHints /* 2041 */
m_bShieldDrawn /* 2042 */
m_bOwnsShield /* 2043 */
m_bWasFollowing /* 2044 */
__________________