rg_set_global_iteminfo
native rg_set_global_iteminfo(const {WeaponIdType,_}:weapon_id, ItemInfo:type, any:...);
| Parameter |
Description |
| weapon_id | Weapon id, see WEAPON_* constants |
| type | Item info type. See ItemInfo constants. |
Sets a parameter of the global CBasePlayerItem::m_ItemInfoArray array
To have effect on client side (i.g. ammo size on HUD) you should
alter this value BEFORE WeaponList message is sent to client, or
force it's alteration by sending again to the specific client.
Hooking WeaponList message with AMXX's register_message is a choice.