AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Event_CurWeapon Help (https://forums.alliedmods.net/showthread.php?t=195006)

MercedeSx7 09-02-2012 13:05

Event_CurWeapon Help
 
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 :up:

OvidiuS 09-02-2012 13:09

Re: Event_CurWeapon Help
 
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 ] );                   }          } }
https://forums.alliedmods.net/images/smilies/wink.gif

MercedeSx7 09-02-2012 13:23

Re: Event_CurWeapon Help
 
Tnx :up:

hleV 09-02-2012 13:52

Re: Event_CurWeapon Help
 
Or
Code:
return PLUGIN_CONTINUE;
:arrow:
Code:
return;


All times are GMT -4. The time now is 08:22.

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