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

[ANY] SourceMod DJ (SMDJ)


  • 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 489
  • Lokalizacja:AMXX.PL
Offline

Napisano 18.11.2011 05:55

[ANY] SourceMod DJ


Plugin v1.0.0 - Web Interface v1.0.0

Description:
Allows users to type !music, !dj, or !jukebox to choose a song from a list of predefined songs in a regular panel menu. When a choice is made, the song's page from the web interface will be loaded in the MOTD browser, without the MOTD window being displayed. Includes a web interface to listen to songs, or a listing of songs available on the Web. The web interface takes no time to set up, and has support for two themes (default and TF2) out of the box. Requires MySQL.

Commands:
music - (!music in chat) pull up the song menu
dj - (!dj in chat) same as above
jukebox - (!jukebox in chat) same as above
musicoff - (!musicoff in chat) turns the music off

Cvars:
smdj_version - plugin version
smdj_advert - (default 1) sets whether a user's music choice will be broadcast to the server in chat
smdj_join_advert - (default 1) sets whether the user will be informed of the SMDJ commands upon connecting
smdj_url - the URL of your SMDJ web installation (i.e. "http://tradeserver.d...mckay.com/smdj")

Plugin creates and loads /cfg/sourcemod/plugin.smdj.cfg

Installation:
  • Put smdj.smx into /addons/sourcemod/plugins
  • Find a MySQL database to use, and add its configuration to databases.cfg under the config "smdj" (see example below)
  • Extract WebInterface.zip and upload it to your server
  • Put your database settings into config.php in the web interface
  • Set a theme (if you want), and set an administration password (can be plaintext or MD5)
Example databases.cfg entry:
Code: "smdj"
{
"driver" "mysql"
"host" "199.119.226.105"
"database" "smdj"
"user" "mysql_user"
"pass" "mysql_password"
//"timeout" "0"
//"port" "0"
}Changelog:
  • v1.0.0 (11/17/11)
  • Initial Release
This plugin does not automatically update due to issues that could arise with the plugin being updated but not the web interface.

This plugin uses Colors, which is required if you want to compile locally.

I most likely forgot something, so expect an update soon. Be sure to tell me if it works. :)
Attached Files Dołączona grafika WebInterface.zip (135.5 KB) Dołączona grafika Get Plugin or Get Source (smdj.sp - 5.0 KB) Dołączona grafika smdj.smx (8.6 KB)

Wyświetl pełny artykuł




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

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