Raised This Month: $ Target: $400
 0% 

Multiple HE Grenades


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 02-06-2010 , 22:23   Re: Multiple HE Grenades
Reply With Quote #9

Quote:
Originally Posted by Kreation View Post
For one, this should be -->
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"
}; 
And to do that I'm pretty sure you just add the above to the top of your plugin to make them global.
No. You must remove the second level from the first array. Like this:
PHP Code:
new const g_nad_classnames[Grenades] =
{
 
CSW_HEGRENADE,
 
CSW_HEGRENADE,
 
CSW_FLASHBANG,
 
CSW_SMOKEGRENADE
}; 
Seta00 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