AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Silly question I'm sure *sigh* (https://forums.alliedmods.net/showthread.php?t=3203)

Mugwump 06-29-2004 20:26

Silly question I'm sure *sigh*
 
With emit_sound(), how can I make a sound that only the user it is defined for can hear, or is that not possible?

Thanks,
Mugwump

BAILOPAN 06-29-2004 20:34

Just do client_cmd("spk ^"%s^", sound) in that case

Mugwump 06-29-2004 20:42

Hmm, so this :

new sound[32] = {"buttons/button10.wav"}
client_cmd( id, "spk ^"%s^", sound )

would play that sound only to id , is that right?

Thank you,
Mugwump

Bad HAL 9000 06-29-2004 20:48

yup, u can skip the {} tho

Mugwump 06-29-2004 21:00

Great, thanks guys. :)

-Mugwump

Mugwump 06-29-2004 23:10

I replaced the emit_sound with the code and it hasn't changed a thing, other players can still hear that button10.wav file being played... :(

Muwgump

PM 06-30-2004 12:16

Make sure id isn't 0 :D
and you aren't executing it on every player in any another way :D

Mugwump 06-30-2004 13:27

Unfortunately I'm sure that id is not 0 and that its only being exectuted for the one id executing the command ... :(

Mugwump

Ryan 06-30-2004 15:00

that makes no sense because a client command is only executed on a single client. can you paste the code you're using?

you might have it in some kind of loop that passes it to everyone.


All times are GMT -4. The time now is 14:53.

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