Skocz do zawartości

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie

[forums.alliedmods.net] [ANY] Disco Mod! *Updated: 3/16/12


  • Nie możesz napisać tematu
  • Zaloguj się, aby dodać odpowiedź
Brak odpowiedzi do tego tematu

#1 Adminek AMXX.PL

    Admin :)

  • Bot

Reputacja: 156
Profesjonalista

  • Postów:7 490
  • Lokalizacja:AMXX.PL
Offline

Napisano 17.03.2012 02:28

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. :D



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.
ConVars:
sm_disco_flag - Default "z", uses the Sourcemod Admin_levels.cfg to find the flag you want :D

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
Todo:
  • 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?
CONFIG FILE TUTORIAL:
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 :P
Fearts, Gave me the idea to re-write the script into sourcemod. :D

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 Dołączona grafika Get Plugin or Get Source (disco.sp - 8.7 KB) Dołączona grafika musicconfig.cfg (997 Bytes)

Wyświetl pełny artykuł




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych