Raised This Month: $ Target: $400
 0% 

Multiple HE Grenades


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Kaaba
Member
Join Date: Nov 2009
Old 02-06-2010 , 17:42   Re: Multiple HE Grenades
Reply With Quote #7

Thank you for replys, do you know how can i add that

PHP Code:
new const g_nad_classnames[Grenades][] =
{
 
"CSW_HEGRENADE",
 
"CSW_HEGRENADE",
 
"CSW_FLASHBANG",
 
"CSW_SMOKEGRENADE"
};
new const 
g_nade_classnames[Grenades][] =
{
 
"weapon_hegrenade",
 
"weapon_hegrenade",
 
"weapon_flashbang",
 
"weapon_smokegrenade"
}; 
would work with this:

PHP Code:
percent 100 g_nade_level[client][i] / 4
if( percent && (percent == 100 || random_num(1100) <= percent) )
{
give_item(clientg_nade_classnames[i]);
cs_set_user_bpammo(clientg_nad_classnames[i], );
 
if( 
percent 100 )
{
ColorChat(clientGREEN"[%s]^x03 You received your^x04 %s^x03! (^x04%i%%^x03 chance)"MESSAGE_TAGg_nade_names[i], percent);
}
}; 
So I kind of want 2 different HE grenade chances
Kaaba is offline
 



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 07:28.


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