Raised This Month: $ Target: $400
 0% 

Hook end of reload.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 11-01-2011 , 23:26   Re: Hook end of reload.
Reply With Quote #6

I don't know if this will solve your problem. If you can't figure it out try to explain better what you're trying to do.
PHP Code:
#include <amxmodx>

enum WeaponInfo
{
    
LastWeapon,
    
LastAmmo
}
new 
g_PData33 ][ WeaponInfo ];

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

public 
EvCurWeapon(id)
{
    new 
iWeapon read_data);
    new 
iAmmo read_data);
    
    if ( ( 
iWeapon == g_PDataid ][ LastWeapon ] ) && ( iAmmo g_PDataid ][ LastAmmo ] ) )
    {
        
client_printid print_chat "reload complete" );
    }
    
    
g_PDataid ][ LastWeapon ] = iWeapon;
    
g_PDataid ][ LastAmmo ] = iAmmo;

__________________

Last edited by Bugsy; 11-01-2011 at 23:28.
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 14:28.


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