Raised This Month: $ Target: $400
 0% 

Ham_Weapon_Reload Problem.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-12-2008 , 12:42   Re: Ham_Weapon_Reload Problem.
Reply With Quote #2

I think you should register this forward with the weapons class and not the player class.

What I'm using for a coming plugin :

Code:
    RegisterHamsItemDeploy ()     {         new s_WeaponName[ 24 ];         for ( new i_Wpn = 1; i_Wpn <= MAX_WEAPONS; i_Wpn++ )         {             get_weaponname ( i_Wpn, s_WeaponName, charsmax ( s_WeaponName ) );             if ( s_WeaponName[ 0 ] ) RegisterHam ( Ham_Item_Deploy, s_WeaponName, "fwd_Item_Deploy", 1 );         }     }

It should the same for 'Ham_Weapon_Reload'.
__________________
Arkshine 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 03:16.


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