AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Disable player sound (https://forums.alliedmods.net/showthread.php?t=146514)

reinert 12-28-2010 17:56

Disable player sound
 
Is it possible to turn off player sound for x time ?

or just use stopsound every 0.5sec for about 30 times? :(

drekes 12-28-2010 20:59

Re: Disable player sound
 
to use stopsound every .5 sec:
PHP Code:

set_task(0.5"TaskStopSound"id__"a"30);

public 
TaskStopSound(id)
    
client_cmd(id"stopsound"); 

But i think it would be better to mute his volume, don't know the console command for that though

reinert 12-29-2010 04:30

Re: Disable player sound
 
volume 0, but how to make his volume back to what it was ? - nohow ?

drekes 12-29-2010 08:45

Re: Disable player sound
 
Not sure, but i think you can use query_client_cvar.
Could someone confirm this ?

reinert 12-29-2010 10:52

Re: Disable player sound
 
Yeh thanks! Hope it works :)0

drekes 12-29-2010 16:00

Re: Disable player sound
 
Post if it works or not, may be usefull to other people in the future.


All times are GMT -4. The time now is 02:06.

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