View Single Post
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 04-07-2020 , 08:20   Re: Whose the weapon? [AmxModx 1.8.3 + ReAPI]
Reply With Quote #12

Quote:
Originally Posted by quLeryuzz View Post
I don't think we can write without reapi. I didn't found function like ItemInfo_iId.
cs_get_user_weapon_entity came with 1.8.3, but I can't change. How else could it be?
And also

reapi is very simple to use and it has more function.
You can do it with offsets using fakemeta/hamsandwich/cstrike depending on what you want to do. If you want to get the weapon index from the entity index use either m_iId offset.
If you want the name, use pev_classname.

There's 0 reasons to keep this RE* specific. I don't care how easy it is to use repapi, this forum primarily supports default HLDS and in this case, it is EXTREMELY EASY to use fakemeta and other default modules. By using default amxx stuff you allow everyone to use your plugins, not just people that use rehlds/regamedll.
__________________

Last edited by HamletEagle; 04-07-2020 at 08:21.
HamletEagle is offline