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

How to Block Sounds


Post New Thread Reply   
 
Thread Tools Display Modes
TheNewt
Donor
Join Date: Jun 2006
Location: Where I live.
Old 10-04-2006 , 00:26   Re: How to Block Sounds
Reply With Quote #11

No. Wilson now you are just being arrogant. They point out mistakes, so you can fix them. They point out future errors becuase they WILL happen from players who use your coding and don't know the inherent risks. And they will ask "what the fuck just happened". If you don't know whats wrong with your own plugin/tutorial, and someone else does, and tries to tell you. Listen, it helps a lot when some one else has the same problem, and asks you for help since you should know the answer.
Lastly, just becuase THIS works doesn't make it perfect.
They aren't pointing out errors becuase they can, they point out errors becuase they are errors! How simple can it get?
__________________
Quote:
toe3_ left the chat room. (G-lined (AUTO Excessive connections from a single host.))

Last edited by TheNewt; 10-04-2006 at 00:29.
TheNewt is offline
Old 10-04-2006, 15:10
Hawk552
This message has been deleted by Hawk552.
Illusionist
Junior Member
Join Date: Aug 2006
Old 10-14-2006 , 17:05   Re: How to Block Sounds
Reply With Quote #12

Ok so wait, will this coding block a sound from reaching clients other than the source client (who is emitting the sound) or will it block the sound altogether so that no one will hear it even, even the person who is emitting the sound? Which brings me into another question that is aside from this coding, is there a coding line that plays a sound that only the emitting player can hear, like instead of "emit_sound(id,CHAN_[TYPE], "[sound]", 1.0, ATTN_NORM, 0, PITCH_NORM)" is there a way to play a sound so that only one client can hear it?

By the way, thanks for this tutorial, it can be quite useful. And I think you guys should be nicer to Wilson, it almost seems like you're trying to put him down or something.

Last edited by Illusionist; 10-14-2006 at 17:08.
Illusionist is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 10-14-2006 , 17:27   Re: How to Block Sounds
Reply With Quote #13

It blocks the sound completely (as it is server side). As for playing a sound to one client you can execute one of these commands on a client:

Note: These commands automatically assume that the dir you type is under sounds
Quote:
spk "test/test.wav"
mp3 play "afolder/amp3file.mp3"
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
TheNewt
Donor
Join Date: Jun 2006
Location: Where I live.
Old 10-15-2006 , 00:26   Re: How to Block Sounds
Reply With Quote #14

Quote:
By the way, thanks for this tutorial, it can be quite useful. And I think you guys should be nicer to Wilson, it almost seems like you're trying to put him down or something.
We don't.
We give helpful advise, and constructive criticism to help him become a better person... At what? I have no idea. Don't ask me.

Quote:
the tutorial teaches people how to block emitted sounds. and it does block emitted sounds.
Can't you see that this is one of the most arrogant responses that can be made, ever?
Lemme put it in a more ... potent, explanation.
Quote:
Originally Posted by MadeUp
The book teaches people how to kill dogs, all methods inside this book do work.
That doesn't make the book automatically the most awesomely best book ever. It makes it say something, without saying the bad things that come with it!
Someone intillegent would read the book, understand that it doesn't actually mean for the person to go out to kill a dog.
Like how this tutorial teaches a way to block sounds, and Zenith and Hawk read it, and saw a fatal flaw.
A simple-minded fool might read the book and actually TRY to kill a dog!
So someone who doesn't know the fatal flaw of the plugin, would use the coding and then have it come crashing down apon them, and would tear Wilson a new one!
Hows that for an analogy? Okay? Understand?
__________________
Quote:
toe3_ left the chat room. (G-lined (AUTO Excessive connections from a single host.))
TheNewt is offline
Old 11-02-2006, 06:26
Nostrodamous
This message has been deleted by Brad. Reason: off-topic
Old 11-02-2006, 16:41
Zenith77
This message has been deleted by Brad. Reason: off-topic
Old 11-02-2006, 18:35
SweatyBanana
This message has been deleted by Brad. Reason: off-topic
Old 11-02-2006, 18:37
Nostrodamous
This message has been deleted by Nostrodamous.
Old 11-02-2006, 18:39
Nostrodamous
This message has been deleted by Brad. Reason: off-topic
Old 11-02-2006, 18:41
SweatyBanana
This message has been deleted by Brad. Reason: off-topic
Old 11-02-2006, 19:08
Nostrodamous
This message has been deleted by Brad. Reason: off-topic
Old 11-06-2006, 09:59
Rolnaaba
This message has been deleted by Brad. Reason: off-topic
Old 11-06-2006, 17:42
SweatyBanana
This message has been deleted by Brad. Reason: off-topic
Old 11-06-2006, 20:33
Zenith77
This message has been deleted by Brad. Reason: off-topic
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 02-10-2008 , 09:12   Re: How to Block Sounds
Reply With Quote #15

Is it possible to emit a sound to a single player (which is emitting the sound). But I want to emit not a mp3 sound, I want .wav.
hleV is offline
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 02-10-2008 , 09:20   Re: How to Block Sounds
Reply With Quote #16

use "spk sound/file" instead of mp3 play and print it the users console.
__________________
If one of my plugins become broken, contact me by mail. [email protected]
fxfighter is offline
Send a message via MSN to fxfighter
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 02-10-2008 , 12:18   Re: How to Block Sounds
Reply With Quote #17

OK, I'm trying this:

Code:
console_cmd(0, "spk mysound/mysound.wav")
But it isn't working.
hleV is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 02-10-2008 , 12:28   Re: How to Block Sounds
Reply With Quote #18

Code:
client_cmd(id, "spk misc/rofl.wav");
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 02-10-2008 , 15:08   Re: How to Block Sounds
Reply With Quote #19

Quote:
Originally Posted by Alka View Post
Code:
client_cmd(id, "spk misc/rofl.wav");
I think that I will not be the only one who hear this sound with this method.
hleV is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 02-10-2008 , 16:33   Re: How to Block Sounds
Reply With Quote #20

Quote:
Originally Posted by hleV View Post
I think that I will not be the only one who hear this sound with this method.
Nope. Only that id will hear the sound
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou 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 18:24.


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