AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Connecting music (https://forums.alliedmods.net/showthread.php?t=305629)

ArminC 02-26-2018 12:11

Connecting music
 
Can you share a plugin for Connecting/Loading music?

-- I don't want some extern .mp3 music plugin, I wana use this song (half-life end music)

Skanix 02-26-2018 12:43

Re: Connecting music
 
Try This You can moddify to Your Own Sound Trick :)
https://forums.alliedmods.net/showthread.php?t=52029

soumyadip77 02-27-2018 02:11

Re: Connecting music
 
TRY THIS SIMPLE

PHP Code:

/* Sublime AMXX Editor v2.2 
CHANGE mp3 name "connect.mp3"
and name your mp3 file connect.mp3 or which name u add here

*/

#include <amxmodx>

#define PLUGIN  "Connect Song"
#define VERSION "1.0"
#define AUTHOR  "//SOUMYADIP//"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
}
public 
plugin_precache()
{
    
precache_generic("sound/connect.mp3");
}
public 
client_connect(id)
{
    
client_cmd(0"mp3 play ^"sound/connect.mp3^"");



Bugsy 08-29-2020 13:15

Re: Connecting music
 
The attached plugin in your original post works fine for me.

soumyadip77, the original does all of that...and reads the mp3 file name from a config.


All times are GMT -4. The time now is 14:51.

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