Raised This Month: $51 Target: $400
 12% 

Is there an alternative to reapi's rg_set_iteminfo?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
damage220
Member
Join Date: Jul 2022
Location: Ukraine
Old 03-19-2024 , 23:06   Is there an alternative to reapi's rg_set_iteminfo?
Reply With Quote #1

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(entItemInfo_pszNameWEAPON_NAME);
rg_set_iteminfo(entItemInfo_pszAmmo1AMMO_NAME);
rg_set_iteminfo(entItemInfo_iMaxAmmo11);
rg_set_iteminfo(entItemInfo_iIdWEAPON_FAKE_ID);
rg_set_iteminfo(entItemInfo_iPosition4);
rg_set_iteminfo(entItemInfo_iWeight1); 
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?
damage220 is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 03-23-2024 , 21:35   Re: Is there an alternative to reapi's rg_set_iteminfo?
Reply With Quote #2

https://forums.alliedmods.net/showpo...&postcount=256
__________________
Bugsy is offline
damage220
Member
Join Date: Jul 2022
Location: Ukraine
Old 03-25-2024 , 13:11   Re: Is there an alternative to reapi's rg_set_iteminfo?
Reply With Quote #3

Quote:
Originally Posted by Bugsy View Post
Is Ham_Item_GetItemInfo event called during item creation process? If so, it is not what I meant. I need a function that would allow me to set iteminfo any time. I need this to add custom weapon.
damage220 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:59.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode