Raised This Month: $ Target: $400
 0% 

[HELP] Better way for Unlimited Clip?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 11-22-2015 , 07:23   Re: [HELP] Better way for Unlimited Clip?
Reply With Quote #9

How often are you firing your CurWeapon callback? You can set it to only fire when the clip is empty like this:
PHP Code:
#include <amxmodx>
#include <cstrike>
#include <hamsandwich>

public plugin_init() 
{
    
register_event"CurWeapon" "EvCurWeapon" "be" "1=1" "3=0" );
}

public 
EvCurWeaponid )
{
    static const 
m_pActiveItem 373;
    
    
cs_set_weapon_ammoget_pdata_cbaseid m_pActiveItem ) , 10 );

__________________

Last edited by Bugsy; 11-22-2015 at 07:25.
Bugsy 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 18:16.


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