Raised This Month: $ Target: $400
 0% 

Is there a way to increase vol.?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Rolnaaba
Veteran Member
Join Date: May 2006
Old 05-31-2006 , 09:26   Is there a way to increase vol.?
Reply With Quote #1

I am using this comand
Code:
client_cmd(id,"mp3 play ^"%s^"",g_szSOUNDVARIABLE)
to play a sound is there anyway to use this or another comand to increase the vol. the sound plays at?
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
atomic
Veteran Member
Join Date: Jan 2005
Location: What The Foot?
Old 05-31-2006 , 09:39  
Reply With Quote #2

client_cmd(id, volume 2), Only way i think
__________________
atomic is offline
p3tsin
Senior Member
Join Date: Sep 2005
Location: Finland
Old 05-31-2006 , 12:07  
Reply With Quote #3

for mp3s the cvar is MP3Volume
(remember to change it back after playing the sound/on client disconnect)
__________________
plop
p3tsin is offline
Rolnaaba
Veteran Member
Join Date: May 2006
Old 05-31-2006 , 13:02  
Reply With Quote #4

do I jus do
Code:
register_cvar("MP3Volume", "somenumber")
then say
Code:
set_cvar_num("MP3Volume", "somenumber")
oh and is this an engine comand or do I need another module ?
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
p3tsin
Senior Member
Join Date: Sep 2005
Location: Finland
Old 05-31-2006 , 13:16  
Reply With Quote #5

Code:
new Float:volumes[33] public client_disconnect(id) {     client_cmd(id, "MP3Volume %f",volumes[id]) } public client_putinserver(id) {     volumes[id] = 0.0     query_client_cvar(id, "MP3Volume", "cvar_mp3volume") } public cvar_mp3volume(id, const cvar[], const value[]) {     if(equal(cvar,"MP3Volume")) volumes[id] = floatstr(value) } ... public playsomesound(id) {     client_cmd(id, "MP3Volume 2.0;mp3 play %s", soundfile) }
__________________
plop
p3tsin is offline
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 16:31.


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