Raised This Month: $ Target: $400
 0% 

loading song play midi??


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
james007torres24
Junior Member
Join Date: Dec 2005
Location: SD,CA
Old 12-20-2005 , 14:57   loading song play midi??
Reply With Quote #1

k can some1 help me with making the server play a .mid sound file when ppl connect. i tried this but did not work.

Code:
#include <amxmodx>



public plugin_precache() {
   precache_sound("misc/suggestions.mid")
   return PLUGIN_CONTINUE
}


public client_connect(id) {
   client_cmd(id,"midi play sound/misc/suggestions.mid")
   return PLUGIN_CONTINUE
}



public plugin_init() {
   register_plugin("azure demo","1.0","Amxx Newbie")
   return PLUGIN_CONTINUE
}
i got it from here http://forums.alliedmods.net/showthread.php?p=42061 and here http://forums.alliedmods.net/showthread.php?t=9296
james007torres24 is offline
Lord_Destros
Veteran Member
Join Date: Jul 2004
Location: With stupid.
Old 12-20-2005 , 15:30  
Reply With Quote #2

lol, thats one reason i want my streaming loading song to be done .
__________________
Quote:
Originally Posted by Twilight Suzuka
Don't worry m'lord. The turtles day will come.
Lord_Destros is offline
Send a message via AIM to Lord_Destros
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:09.


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