AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   loading sounds .sma (https://forums.alliedmods.net/showthread.php?t=8989)

s.w.a.t 01-02-2005 10:48

loading sounds .sma
 
#include <amxmodx>



public plugin_precache() {
precache_sound("misc/yea.mp3")
return PLUGIN_CONTINUE
}


public client_connect(id) {
client_cmd(id,"mp3 play sound/misc/yea.mp3")
return PLUGIN_CONTINUE
}



public plugin_init() {
register_plugin("loading sounds","1.0","tesssst")
return PLUGIN_CONTINUE
}

this is what i compile
i use the sv download url properly it will download the .mp3 but it wont play any ideas?
amxx 0.16
metamod 1.17.3

Acid-Gurke 01-02-2005 11:37

Volume
 
Maybe it will Play in Background, but the MP3 Volume is too low.

Try
Code:

public client_connect(id) {
client_cmd(id,"mp3_volume 255")
client_cmd(id,"mp3 play sound/misc/yea.mp3")
return PLUGIN_CONTINUE
}

to adjust every Players MP3 Volume to max

devicenull 01-02-2005 12:00

Re: Volume
 
Quote:

Originally Posted by Acid-Gurke
Maybe it will Play in Background, but the MP3 Volume is too low.

Try
Code:

public client_connect(id) {
client_cmd(id,"mp3_volume 255")
client_cmd(id,"mp3 play sound/misc/yea.mp3")
return PLUGIN_CONTINUE
}

to adjust every Players MP3 Volume to max

People lower their mp3 volume if they don't want to hear sounds.. why would you increase it?


All times are GMT -4. The time now is 19:24.

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