AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   emit_sound for only one player? (https://forums.alliedmods.net/showthread.php?t=226690)

KuvZz 09-21-2013 17:41

emit_sound for only one player?
 
Hi guys. I use this:
PHP Code:

case 1:
         {
        
emit_sound(idCHAN_AUTOselectVOL_NORMATTN_NORM 0PITCH_NORM//Emit the sound "select"
        
ct(id//Go to CT menu
         


but other players can hear the sound too. I want the player who select the option hear the sound, only he/she.
Thanks:D

Black Rose 09-21-2013 17:47

Re: emit_sound for only one player?
 
There might be a channel specific to one player, but this would be easier:
client_cmd(id, "spk ^"file.wav^"");
client_cmd(id, "mp3 play ^"file.mp3^"");

KuvZz 09-21-2013 18:17

Re: emit_sound for only one player?
 
Problem solved. Thanks:D


All times are GMT -4. The time now is 18:59.

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