Raised This Month: $ Target: $400
 0% 

loading sounds .sma


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
s.w.a.t
Member
Join Date: Apr 2004
Old 01-02-2005 , 10:48   loading sounds .sma
Reply With Quote #1

#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
s.w.a.t is offline
Acid-Gurke
New Member
Join Date: Apr 2004
Location: A'burg, Germany
Old 01-02-2005 , 11:37   Volume
Reply With Quote #2

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
Acid-Gurke is offline
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 01-02-2005 , 12:00   Re: Volume
Reply With Quote #3

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?
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull 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 19:24.


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