[ SOLVED ] Stop specified sound?
How do i stop playing a specific sound, for example:
PHP Code:
|
Re: [ HELP ] Stop specified sound?
First off, correct this.
PHP Code:
PHP Code:
And third, what are you exactly trying to do? Do you want to stop the sound at a point? This might be the answer If I'm not wrong. PHP Code:
|
Re: [ HELP ] Stop specified sound?
Quote:
Quote:
|
Re: [ HELP ] Stop specified sound?
Only possible through emit_sound() since client_cmd() is sended like the client wrote it himself (it has to be broadcasted through a channel to stop the snd which it doesn't via client_cmd()). Which means you cannot stop a specific sound when you've executed a client-sided cmd through client_cmd().
|
Re: [ HELP ] Stop specified sound?
With emit_sound() is possible?
Please show a example. |
Re: [ HELP ] Stop specified sound?
Use SND_STOP flag.
amxconst.inc Code:
#define SND_STOP (1<<5) // stop sound |
Re: [ HELP ] Stop specified sound?
How does this fit in my code?
Please show the full code. |
Re: [ HELP ] Stop specified sound?
https://forums.alliedmods.net/showthread.php?t=226690
Another idea is to convert the sound into mp3 format. If there aren't any other mp3 sound files playing while this is being played. In that case you can send "mp3 stop" whenever you want your (mp3) sound file to stop play. |
Re: [ HELP ] Stop specified sound?
PHP Code:
PHP Code:
|
Re: [ HELP ] Stop specified sound?
Code:
|
| All times are GMT -4. The time now is 18:03. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.