Raised This Month: $ Target: $400
 0% 

cs_set_user_bpammo not working


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
LondoN
Senior Member
Join Date: Dec 2015
Location: Roman, Romania.
Old 01-17-2021 , 18:18   cs_set_user_bpammo not working
Reply With Quote #1

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)

new const g_cPrimaryWeaponsName [ ] [ ]  =
{
	"M4A1 Automatic",
	"AK47 Kalashnikov",
	"Famas",
	"Galil",
	"M249 Machine Gun"
};

new const g_cPrimaryWeaponsEntity [ ] [ ] =
{
	"weapon_m4a1",
	"weapon_ak47",
	"weapon_famas",
	"weapon_galil",
	"weapon_m249"
};
where don't work:

Code:
public PRIMARY_WEAPONS_HANDLER ( iEntity, iMenu, iKey )
{
	if ( iKey == MENU_EXIT )
	{
		menu_destroy ( iMenu );
		return;
	}

	give_item ( iEntity, g_cPrimaryWeaponsEntity [ iKey ] );

	new iWeaponID = get_user_weapon ( iEntity );

	if ( GUN_BITS & (1<<iWeaponID) )
		cs_set_user_bpammo ( iEntity, iWeaponID, 90 );
}
it give's me the right weapon but don't give 90 bpammo for that weapon
__________________
LondoN is offline
 


Thread Tools
Display Modes

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 14:14.


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