Raised This Month: $ Target: $400
 0% 

Ham_Weapon_Reload Problem.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 08-12-2008 , 13:09   Re: Ham_Weapon_Reload Problem.
Reply With Quote #4

Quote:
Originally Posted by shine771 View Post
Mm... i used "weapon_glock18"... nothing happened. If it would work... should i register ~20-30 forwards.. because there are ~20-30 weapon in CS. Of course i can do for loop... but isn't there a better way.. like "weapon_" >>> All entities with classname containing/starting(with) "weapon_" would be hooked/included... anyway... it doesn't work... . Thanks for your help anyway.
You can hook Ham_Player_AddItem and use RegisterHamFromEntity in the just added weapon. Then when the item is removed you can disable the hook.
danielkza 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