AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [SOLVED] stop specific sounds? (https://forums.alliedmods.net/showthread.php?t=222485)

Blizzard_87 08-03-2013 09:12

[SOLVED] stop specific sounds?
 
is there a way to stop specific sound files instead of using
Code:
client_cmd( 0, "stopsound" );
???

dFF 08-03-2013 09:21

Re: stop specific sounds?
 
I think you can do only with emit_sound. Some like:

start:
PHP Code:

emit_soundidCHAN_AUTO"misc/sound.wav"VOL_NORMATTN_NORM0PITCH_NORM 

stop:
PHP Code:

emit_soundidCHAN_AUTO"misc/sound.wav"VOL_NORMATTN_NORMSND_STOPPITCH_NORM 


Blizzard_87 08-03-2013 09:24

Re: stop specific sounds?
 
Quote:

Originally Posted by dFF (Post 2004756)
I think you can do only with emit_sound. Some like:

start:
PHP Code:

emit_soundidCHAN_AUTO"misc/sound.wav"VOL_NORMATTN_NORM0PITCH_NORM 

stop:
PHP Code:

emit_soundidCHAN_AUTO"misc/sound.wav"VOL_NORMATTN_NORMSND_STOPPITCH_NORM 


thanks... i thought it had something to do with emit_sound... cheers...


All times are GMT -4. The time now is 15:56.

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