cs_set_user_bpammo not working
Plugin Header
Code:
#define GUN_BITS (1<<CSW_P228|1<<CSW_GLOCK18|1<<CSW_USP|1<<CSW_DEAGLE|1<<CSW_FIVESEVEN|1<<CSW_ELITE|1<<CSW_M3|1<<CSW_XM1014|1<<CSW_TMP|1<<CSW_MP5NAVY|1<<CSW_MAC10|1<<CSW_UMP45|1<<CSW_P90|1<<CSW_AK47|1<<CSW_M4A1|1<<CSW_SCOUT|1<<CSW_SG552|1<<CSW_SG550|1<<CSW_GALIL|1<<CSW_FAMAS|1<<CSW_AWP|1<<CSW_G3SG1|1<<CSW_M249)Code:
public PRIMARY_WEAPONS_HANDLER ( iEntity, iMenu, iKey ) |
Re: cs_set_user_bpammo not working
If the give_item is from the fun module, this may fix the problem. If not, just make sure give_item returns the weapon entity index. If it doesn't work, try debbuging your code.
Code:
By the way, you should be returning PLUGIN_HANDLED in menu handlers, as stated in the docs. Quote:
|
Re: cs_set_user_bpammo not working
Code:
new iWeaponEntID = fm_find_ent_by_owner ( -1, g_cPrimaryWeaponsEntity [ iKey ], iEntity )If anyone can show me up a way to use single module natives to do this handler im opened<3 |
Re: cs_set_user_bpammo not working
You may use whatever amount of modules is needed, but avoid fakemeta_util.
|
| All times are GMT -4. The time now is 14:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.