Raised This Month: $ Target: $400
 0% 

Solved SVC_STOPSOUND message


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
damage220
Senior Member
Join Date: Jul 2022
Location: Ukraine
Old 11-25-2022 , 06:20   Re: SVC_STOPSOUND message
Reply With Quote #1

Quote:
Originally Posted by kww View Post
It immediately stops every sound player hear
Then why does it do nothing when I send it? I can still hear ambient sound on de_train or de_aztec, unlike when I issue stopsound command. You can see the code at the beginning of this thread (pid is player id).
damage220 is offline
MrPickles
Senior Member
Join Date: Aug 2022
Location: Colombia
Old 11-25-2022 , 16:47   Re: SVC_STOPSOUND message
Reply With Quote #2

Quote:
Originally Posted by damage220 View Post
Then why does it do nothing when I send it? I can still hear ambient sound on de_train or de_aztec, unlike when I issue stopsound command. You can see the code at the beginning of this thread (pid is player id).
You are getting too complicated for something very simple, just use stopound, the efficiency is minimal and almost irrelevant, just place it once when you enter the server and that's it
MrPickles is offline
damage220
Senior Member
Join Date: Jul 2022
Location: Ukraine
Old 11-26-2022 , 01:16   Re: SVC_STOPSOUND message
Reply With Quote #3

Quote:
Originally Posted by MrPickles View Post
You are getting too complicated for something very simple, just use stopound, the efficiency is minimal and almost irrelevant, just place it once when you enter the server and that's it
As far as I know you cannot use this command on client connect. It works only after spawn and have to be issued every round. Okay, I understand your point. It is not that important. I usually try to improve things if I can.
damage220 is offline
MrPickles
Senior Member
Join Date: Aug 2022
Location: Colombia
Old 11-28-2022 , 14:19   Re: SVC_STOPSOUND message
Reply With Quote #4

Quote:
Originally Posted by damage220 View Post
As far as I know you cannot use this command on client connect. It works only after spawn and have to be issued every round. Okay, I understand your point. It is not that important. I usually try to improve things if I can.
client_connect: If someone is connecting to the server.
client_putinserver: If someone see the motd of server. He's already joined.


use client_putinserver...
MrPickles is offline
damage220
Senior Member
Join Date: Jul 2022
Location: Ukraine
Old 11-29-2022 , 11:20   Re: SVC_STOPSOUND message
Reply With Quote #5

Quote:
Originally Posted by MrPickles View Post
client_connect: If someone is connecting to the server.
client_putinserver: If someone see the motd of server. He's already joined.


use client_putinserver...
Have you tested? I can confirm that it does not work, the sound is still there. Correct me if I did something wrong.
PHP Code:
public client_putinserver(pid)
{
    
client_cmd(pid"stopsound");

damage220 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 15:39.


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