Raised This Month: $51 Target: $400
 12% 

weapon change event


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
avril-lavigne
Banned
Join Date: Apr 2009
Old 07-22-2011 , 17:52   weapon change event
Reply With Quote #1

I want to add a sound when user is switching weapon, how to catch that moment
I searched and found this http://forums.alliedmods.net/showthread.php?t=117252

but no code provided
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc
avril-lavigne is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 07-22-2011 , 17:53   Re: weapon change event
Reply With Quote #2

Hook Ham_Item_Deploy for all weapons.

(Make a loop of weapons and register ham_item_deploy to the same function, unless you want different sounds for different weapons).
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
avril-lavigne
Banned
Join Date: Apr 2009
Old 07-22-2011 , 17:58   Re: weapon change event
Reply With Quote #3

ok
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc
avril-lavigne is offline
Reply



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 05:21.


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