Skip to content

Commit

Permalink
agregado para los inc de amx
Browse files Browse the repository at this point in the history
  • Loading branch information
aleeperezz16 committed Jan 4, 2024
1 parent e8b639d commit 9e8e2b0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
18 changes: 18 additions & 0 deletions reapi/extra/amxmodx/scripting/include/reapi_gamedll.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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:...);
6 changes: 6 additions & 0 deletions reapi/extra/amxmodx/scripting/include/reapi_gamedll_const.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

/**
Expand Down

0 comments on commit 9e8e2b0

Please sign in to comment.