Raised This Month: $ Target: $400
 0% 

loading song play midi??


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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