Raised This Month: $ Target: $400
 0% 

disable sound


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
daniel46
Senior Member
Join Date: Dec 2011
Old 04-22-2013 , 09:51   disable sound
Reply With Quote #1

can i some how disable the E sound i mean when player click on E it make some sound so i dont want it is it possble?
daniel46 is offline
Unkolix
Veteran Member
Join Date: Sep 2012
Old 04-22-2013 , 10:08   Re: disable sound
Reply With Quote #2

It's not quite "E", it's "USE"...
Unkolix is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 04-22-2013 , 10:29   Re: disable sound
Reply With Quote #3

Use this:
Code:
#include <amxmodx> #include <fakemeta> new const g_szSndUse[] = "common/wpn_denyselect.wav"; public plugin_init() {     register_forward( FM_EmitSound, "Forward_EmitSound" ); } public Forward_EmitSound( id, iChannel, const szSound[] ) {     if( equal( szSound, g_szSndUse ) )     {         // play different sound?                 return FMRES_SUPERCEDE;     }         return FMRES_IGNORED; }
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 04-23-2013 , 01:00   Re: disable sound
Reply With Quote #4

is it possible to only disable the sound when using parachute?
__________________
Blizzard_87 is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 04-23-2013 , 04:27   Re: disable sound
Reply With Quote #5

Quote:
Originally Posted by Blizzard_87 View Post
is it possible to only disable the sound when using parachute?
Since you need to be in the air to use a parachute, you could change the condition to this:
Code:
if( equal( szSound, g_szSndUse ) && !( pev( id, pev_flags ) & FL_ONGROUND ) )
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 04-23-2013 , 04:41   Re: disable sound
Reply With Quote #6

cheers thanks!
__________________
Blizzard_87 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-23-2013 , 16:46   Re: disable sound
Reply With Quote #7

Deploy a weapon and press +use while you are deploying it and no sound is played ^^
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 04-23-2013 , 18:26   Re: disable sound
Reply With Quote #8

Quote:
Originally Posted by ConnorMcLeod View Post
Deploy a weapon and press +use while you are deploying it and no sound is played ^^

Its causing a kill by CPL / CAL Rules
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-23-2013 , 18:29   Re: disable sound
Reply With Quote #9

Sure, deploy your parachute without sound and scrimm is cancelled.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 04-23-2013 , 19:45   Re: disable sound
Reply With Quote #10

Quote:
Originally Posted by ConnorMcLeod View Post
Deploy a weapon and press +use while you are deploying it and no sound is played ^^
Quote:
Originally Posted by ^SmileY View Post
Its causing a kill by CPL / CAL Rules
Quote:
Originally Posted by ConnorMcLeod View Post
Sure, deploy your parachute without sound and scrimm is cancelled.
its just for a fun server not wars.
__________________
Blizzard_87 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 10:45.


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