AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Is there a way to increase vol.? (https://forums.alliedmods.net/showthread.php?t=29170)

Rolnaaba 05-31-2006 09:26

Is there a way to increase vol.?
 
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?

atomic 05-31-2006 09:39

client_cmd(id, volume 2), Only way i think

p3tsin 05-31-2006 12:07

for mp3s the cvar is MP3Volume :)
(remember to change it back after playing the sound/on client disconnect)

Rolnaaba 05-31-2006 13:02

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 ?

p3tsin 05-31-2006 13:16

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) }


All times are GMT -4. The time now is 16:31.

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