Raised This Month: $ Target: $400
 0% 

Event_CurWeapon Help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MercedeSx7
Senior Member
Join Date: Feb 2012
Location: Serbia
Old 09-02-2012 , 13:05   Event_CurWeapon Help
Reply With Quote #1

Code:
public Event_CurWeapon( id )
{
         if ( !( get_user_flags ( id ) & VIPACCESS ) ) 
         return PLUGIN_CONTINUE; 
	
         new iWeapon = read_data( 2 )
         if( !( NOCLIP_WPN_BS & ( 1 << iWeapon) ) )
	 {
		fm_cs_set_weapon_ammo( get_pdata_cbase( id, m_pActiveItem ) , g_MaxClipAmmo[ iWeapon ] );
	 }
}
Can some fix this code, it should returen a value but i dont know what plugin continue or handled. Thanks
__________________
MercedeSx7 is offline
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 09-02-2012 , 13:09   Re: Event_CurWeapon Help
Reply With Quote #2

Code:
public Event_CurWeapon( id ) {          if ( get_user_flags ( id ) & VIPACCESS )          {                    new iWeapon = read_data( 2 )                   if( !( NOCLIP_WPN_BS & ( 1 << iWeapon) ) )                   {                            fm_cs_set_weapon_ammo( get_pdata_cbase( id, m_pActiveItem ) , g_MaxClipAmmo[ iWeapon ] );                   }          } }
OvidiuS is offline
Send a message via Skype™ to OvidiuS
MercedeSx7
Senior Member
Join Date: Feb 2012
Location: Serbia
Old 09-02-2012 , 13:23   Re: Event_CurWeapon Help
Reply With Quote #3

Tnx
__________________
MercedeSx7 is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 09-02-2012 , 13:52   Re: Event_CurWeapon Help
Reply With Quote #4

Or
Code:
return PLUGIN_CONTINUE;

Code:
return;
hleV is offline
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 08:22.


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