diff --git a/reapi/extra/amxmodx/scripting/include/reapi_gamedll.inc b/reapi/extra/amxmodx/scripting/include/reapi_gamedll.inc index a91bd509..a001cd4c 100644 --- a/reapi/extra/amxmodx/scripting/include/reapi_gamedll.inc +++ b/reapi/extra/amxmodx/scripting/include/reapi_gamedll.inc @@ -1195,3 +1195,21 @@ native rg_set_observer_mode(const player, const mode); * @noreturn */ native rg_death_notice(const pVictim, const pKiller, const pevInflictor); + +/** +* Sets item info data from ItemInfo handle. Needs to be used in PrecacheItemInfo. +* +* @param iteminfo Item info handle. +* @param type Item info type. See ItemInfo constants. +* +*/ +native set_iteminfo(const iteminfo, const ItemInfo:type, any:...); + +/** +* Gets item info data from ItemInfo handle. Needs to be used in PrecacheItemInfo. +* +* @param iteminfo Item info handle. +* @param type Item info type. See ItemInfo constants. +* +*/ +native get_iteminfo(const iteminfo, const ItemInfo:type, any:...); diff --git a/reapi/extra/amxmodx/scripting/include/reapi_gamedll_const.inc b/reapi/extra/amxmodx/scripting/include/reapi_gamedll_const.inc index e9459b5c..5ee7bfee 100644 --- a/reapi/extra/amxmodx/scripting/include/reapi_gamedll_const.inc +++ b/reapi/extra/amxmodx/scripting/include/reapi_gamedll_const.inc @@ -479,6 +479,12 @@ enum GamedllFunc * Params: (const pPlayer, iSlot) */ RG_BuyItem, + + /* + * Description: Called when retrieved GetItemInfo in UTIL_PrecacheOtherWeapon. + * Params: (const iteminfo) + */ + RG_PrecacheItemInfo, }; /**