Raised This Month: $ Target: $400
 0% 

Disable player sound


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
reinert
Veteran Member
Join Date: Feb 2007
Old 12-28-2010 , 17:56   Disable player sound
Reply With Quote #1

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

or just use stopsound every 0.5sec for about 30 times?
reinert is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 12-28-2010 , 20:59   Re: Disable player sound
Reply With Quote #2

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
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
reinert
Veteran Member
Join Date: Feb 2007
Old 12-29-2010 , 04:30   Re: Disable player sound
Reply With Quote #3

volume 0, but how to make his volume back to what it was ? - nohow ?
reinert is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 12-29-2010 , 08:45   Re: Disable player sound
Reply With Quote #4

Not sure, but i think you can use query_client_cvar.
Could someone confirm this ?
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
reinert
Veteran Member
Join Date: Feb 2007
Old 12-29-2010 , 10:52   Re: Disable player sound
Reply With Quote #5

Yeh thanks! Hope it works 0
reinert is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 12-29-2010 , 16:00   Re: Disable player sound
Reply With Quote #6

Post if it works or not, may be usefull to other people in the future.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Reply


Thread Tools
Display Modes

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 02:06.


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