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

How do i stop sound when i emit sound???


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Grovliom
Member
Join Date: Mar 2020
Location: somewhere in Serbia
Old 04-05-2020 , 15:38   How do i stop sound when i emit sound???
Reply With Quote #1

Hi... i recently started doing scripting for cs 1.6 and it's pretty fun tbh, but i just cannot figure out how to stop the sond from playing when said "/stopsnd" in cs 1.6

i tried SND_STOP but it didnt work... please help

Last edited by Grovliom; 04-05-2020 at 15:46. Reason: didnt spell the word correctly
Grovliom is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 04-05-2020 , 19:10   Re: How do i stop sound when i emit sound???
Reply With Quote #2

to be honest, i haven't tried something like that before, but if there's really no other option, i'd suggest to play an empty 0,1sec mp3. or .wav file when u want to stop another sound
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 04-06-2020 , 04:58   Re: How do i stop sound when i emit sound???
Reply With Quote #3

SND_STOP should work, show what you tried.
__________________
HamletEagle is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 04-08-2020 , 10:21   Re: How do i stop sound when i emit sound???
Reply With Quote #4

emit_sound with SND_STOP flag will only work if you try to stop a specific sound that's already playing.
Also, I'm not sure but, I think the channel the sound is playing on must also be the same.
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
Grovliom
Member
Join Date: Mar 2020
Location: somewhere in Serbia
Old 04-11-2020 , 09:48   Re: How do i stop sound when i emit sound???
Reply With Quote #5

I fixed it. i just needed to add SND_STOP to flags. thank you for helping!!
Grovliom 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 01:49.


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