rg_set_global_iteminfo

Syntax

native rg_set_global_iteminfo(const {WeaponIdType,_}:weapon_id, ItemInfo:type, any:...);

Usage

Parameter Description
weapon_id
Weapon id, see WEAPON_* constants
type
Item info type. See ItemInfo constants.

Description

Sets a parameter of the global CBasePlayerItem::m_ItemInfoArray array

Note

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.