native

rg_set_global_iteminfo

Syntax

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

Description

Sets a parameter of the global CBasePlayerItem::m_ItemInfoArray array

Parameters

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

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.