AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   disable sound (https://forums.alliedmods.net/showthread.php?t=214050)

daniel46 04-22-2013 09:51

disable sound
 
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?

Unkolix 04-22-2013 10:08

Re: disable sound
 
It's not quite "E", it's "USE"... :)

hornet 04-22-2013 10:29

Re: disable sound
 
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; }

Blizzard_87 04-23-2013 01:00

Re: disable sound
 
is it possible to only disable the sound when using parachute?

hornet 04-23-2013 04:27

Re: disable sound
 
Quote:

Originally Posted by Blizzard_87 (Post 1938048)
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 ) )

Blizzard_87 04-23-2013 04:41

Re: disable sound
 
cheers thanks! :)

ConnorMcLeod 04-23-2013 16:46

Re: disable sound
 
Deploy a weapon and press +use while you are deploying it and no sound is played ^^

^SmileY 04-23-2013 18:26

Re: disable sound
 
Quote:

Originally Posted by ConnorMcLeod (Post 1938471)
Deploy a weapon and press +use while you are deploying it and no sound is played ^^


Its causing a kill by CPL / CAL Rules :)

ConnorMcLeod 04-23-2013 18:29

Re: disable sound
 
Sure, deploy your parachute without sound and scrimm is cancelled.

^SmileY 04-23-2013 19:05

Re: disable sound
 
uhauhauahuahuahauh


All times are GMT -4. The time now is 10:45.

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