AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   loading song play midi?? (https://forums.alliedmods.net/showthread.php?t=22168)

james007torres24 12-20-2005 14:57

loading song play midi??
 
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

Lord_Destros 12-20-2005 15:30

lol, thats one reason i want my streaming loading song to be done :D.


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

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