Hi everyone

,
How can I make CS Engine treat the Famas as Shield ?
I tried :
const SHIELD_DRAW = (1<<16)
const WEAPONSTATE_SHIELD_DRAW = (1<<5)
new iEnt = get_pdata_cbase(id, m_pActiveItem, 5)
set_pdata_bool(id, m_bHasShield, true, 5)
set_pdata_bool(id, m_boolsUserPrefsAndShield, SHIELD_DRAW, 5)
set_pdata_bool(id, m_bUsesShield, true, 5)
set_pdata_int(iEnt, m_fWeaponState, WEAPONSTATE_SHIELD_DRAW, 4)
I do this code to a player, when he die, he drop a shield, but he still take damage from guns
How can I do to treat famas as shield ?