I am looking for a way to change item info of weapon entity. Like the following but without
reapi module.
PHP Code:
rg_set_iteminfo(ent, ItemInfo_pszName, WEAPON_NAME);
rg_set_iteminfo(ent, ItemInfo_pszAmmo1, AMMO_NAME);
rg_set_iteminfo(ent, ItemInfo_iMaxAmmo1, 1);
rg_set_iteminfo(ent, ItemInfo_iId, WEAPON_FAKE_ID);
rg_set_iteminfo(ent, ItemInfo_iPosition, 4);
rg_set_iteminfo(ent, ItemInfo_iWeight, 1);
I know there is *HamItemInfo set of function but as far as I understand these functions do not accept entity variable, and they are used to "set a parameter on the fly of the current hook". I need to change item info any time like rg_set_iteminfo does. Is there an alternative to this function provided by any module shipped with amxmodx?