Raised This Month: $ Target: $400
 0% 

Getting weapon classname.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 04-06-2009 , 12:14   Re: Classname.
Reply With Quote #1

why you dont like equal?

just use this...
PHP Code:
if( equal( class[index], "weapon_name" ) ) 
if you are just confising with it, just ask...
__________________
xPaw is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 04-06-2009 , 12:22   Re: Classname.
Reply With Quote #2

Because it pick ups all weapons ,or not.
And example my level is 4.
PHP Code:
new const WEAPONCONST[MAXLEVEL][] = {"weapon_glock18""weapon_usp""weapon_p228""weapon_fiveseven""weapon_deagle""weapon_elite""weapon_tmp"
"weapon_mac10""weapon_ump45""weapon_mp5navy""weapon_p90""weapon_scout""weapon_awp""weapon_famas""weapon_galil""weapon_m3""weapon_xm1014"
"weapon_ak47""weapon_m4a1""weapon_aug""weapon_sg552""weapon_sg550""weapon_g3sg1""weapon_m249" 
}; // Give Weapons

/// In FWD_TOUCH
    
if (equali(class, WEAPONCONST[PlayerLevel[id]]))
    {
        return 
FMRES_SUPERCEDE;
    } 

Last edited by xbatista; 04-06-2009 at 12:34.
xbatista is offline
Send a message via Skype™ to xbatista
Reply



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 02:25.


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