Description:
If you may have noticed on event scripts there is a disco mod, well im here to tell you that i made that 2x better, with better effects, and better music playing! What i have done is that you can set up to 30 songs in a config file, with this it uses the MOTD panel function, so there's no reason you would need to make clients download large mp3's for something to simple. In my config i have used DoctorMcKay's SMDJ site to rip the mp3 files from.
How it works:
- Admin (with specified flag type's !discomenu)
- The Disco Menu comes up
- Select Start Disco
- Pick a song, which the installer defines.
- Above the admin's head popups a disco ball!
- GO back to the menu and push Stop Disco to stop the disco
- Or Type motd in chat to turn off your personal music.
sm_disco_flag - Default "z", uses the Sourcemod Admin_levels.cfg to find the flag you want
Current Bugs:
- Connecting Late will not play the song to that player
- If a player is looking at the motd, the page will change.
- If a player goes to a page it will stop the music
- Make a stopmusic chat hook, pretty much does the same as motd but dosent bring up the page.
- Make the config file compatible with songs in the local directory.
- I tried to add FOG like in the other script, but couldnt get it to work, every where else is abandoned subject, any suggestions on the fog idea?
- ?? Suggestions?
The Config file must be saved in the sourcemod/config folder as: musicconfig.cfg
Code: "MusicConfig"
{
"Daft Punk - Harder Better Faster Stronger"
{
"path" "tradeserver.doctormckay.com/smdj/index.php?play=22"
}
"Lonely Island - Im on A Boat"
{
"path" "tradeserver.doctormckay.com/smdj/index.php?play=16"
}
"ParagonX9 - Infiltration"
{
"path" "tradeserver.doctormckay.com/smdj/index.php?play=67"
}
"Lonely Island -Like A Boss"
{
"path" "tradeserver.doctormckay.com/smdj/index.php?play=14"
}
"DJ Contacreast - Journey To Heaven"
{
"path" "tradeserver.doctormckay.com/smdj/index.php?play=4"
}
"Headhunterz - Rock Civilization"
{
"path" "tradeserver.doctormckay.com/smdj/index.php?play=74"
}
"DJ Fresh - Gold Dust"
{
"path" "mikes-revenge.net/sandboxx/music/index.php?id=gold_dust.mp3"
}
"Skrillex - Cinema"
{
"path" "mikes-revenge.net/sandboxx/music/index.php?id=cinema.mp3"
}
"Example - Kickstarts"
{
"path" "mikes-revenge.net/sandboxx/music/index.php?id=Kickstarts.mp3"
}
}Link Below
Credits:
DoctorMcKay, Even with out asking i used his url for his music
Fearts, Gave me the idea to re-write the script into sourcemod.
Changes:
Code: 3-16-12 = 0.1.3: Fixed the Discoball crashing the server, cause it technically existed but not physically.
3-16-12 = 0.1.2: Fixed the menu not wanting to close.
3-16-12 = 0.1.1: Changed !disco to !discomenu, might have conflicted with funcommand plugin.DOWNLOAD:
Attached Files Get Plugin or Get Source (disco.sp - 8.7 KB) musicconfig.cfg (997 Bytes)
Wyświetl pełny artykuł