AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Music Menu (https://forums.alliedmods.net/showthread.php?t=294778)

snezzsp 03-07-2017 13:50

Music Menu
 
3 Attachment(s)
Hello to all, I have just created a simple music menu cuz I couldn't find one that I liked so..

I know I'm not a good coder but if this can help anyone it would be nice.

Features
  • Auto music precache
  • .ini file where you set the music you want the plugin to show
  • Admin menu
  • Multilanguage: Already translated to Spanish, English, Romanian ( Thx to Visinescu ) and Moroccan ( Thx to dr hicham )

Requirements
  • Amx Mod X
  • Cstrike
  • Fakemeta

music.ini file
mp3 and wav format available
Code:

"MP3 Song Name" "sound/music/song.mp3"
"WAV Song Name" "sound/music/song.wav"

MAX CHARACTERS IN SONG NAME : 39

Commands
  • say /music
  • say_team /music
  • say !music
  • say_team !music

Admin level to have access to the menu : ADMIN_KICK ( which means 'c' in users.ini )

Installation
  • Compile musicmenu.sma and put it into 'addons/amxmodx/plugins/'
  • Add 'musicmenu.amxx' into 'addons/amxmodx/configs/plugins.ini'
  • Add your music into 'addons/amxmodx/configs/music.ini' as said above
  • Add musicmenu.txt into 'addons/amxmodx/data/lang/'

VERSION 1.2
Added:
  • WAV Files supported now
  • Only songs added to music.ini are precached now
  • Spaces aren't buggy in file routes anymore at music.ini ( v 1.2.1 )

Ps. I would appreciate any english correction, I'm spanish.

snezzsp 03-08-2017 11:14

Re: Music Menu
 
I would also appreciate some more translations; You can post your language's one in this post also.

Relaxing 03-08-2017 16:13

Re: Music Menu
 
To begin with, all players have to download every single music that you put to your configs.
Second, I would suggest using a website for music.
To end with, there's tons of plugins like this. You should call this plugin a practice for yourself because most of servers do not use these stuff like this. A true thing is that peeps do not play games for music.

Visinescu 03-09-2017 06:37

Re: Music Menu
 
YOLO Romanian

[ro]

ADMINMENU_TITLE = \wMeniu \yMuzica ADMIN
ADMINMENU_STOPALL = \wOpreste muzica la \yToti
ADMINMENU_STOPONE = \wOpreste \wMuzica \yJucatorului
ADMINMENU_PLAYALL = \wPorneste pentru \ytoti

ADMINSTOPMENU_TITLE = \yOpreste \wmuzica pentru

ADMINMUSICMENU_TITLE = \yPorneste \wpentru toti

MUSICMENU_TITLE = \yMeniu \rMuzica
MUSICMENU_STOP = \wOpreste \yMuzica
MUSICMENU_ADMIN = \wMeniu \yMuzica ADMIN

LISTENING_TO = %s Acum asculti %s
FORCED_LISTENING_TO = %s Un admin ti-a pus %s
NO_ONE_LISTENING = %s Nimeni nu asculta muzica
ADMIN_STOP = %s Un admin ti-a oprit muzica

edon1337 03-09-2017 08:19

Re: Music Menu
 
Quote:

Originally Posted by Visinescu (Post 2502043)
YOLO Romanian

[ro]

ADMINMENU_TITLE = \wMeniu \yMuzica ADMIN
ADMINMENU_STOPALL = \wOpreste muzica la \yToti
ADMINMENU_STOPONE = \wOpreste \wMuzica \yJucatorului
ADMINMENU_PLAYALL = \wPorneste pentru \ytoti

ADMINSTOPMENU_TITLE = \yOpreste \wmuzica pentru

ADMINMUSICMENU_TITLE = \yPorneste \wpentru toti

MUSICMENU_TITLE = \yMeniu \rMuzica
MUSICMENU_STOP = \wOpreste \yMuzica
MUSICMENU_ADMIN = \wMeniu \yMuzica ADMIN

LISTENING_TO = %s Acum asculti %s
FORCED_LISTENING_TO = %s Un admin ti-a pus %s
NO_ONE_LISTENING = %s Nimeni nu asculta muzica
ADMIN_STOP = %s Un admin ti-a oprit muzica

Location: Tokyo .. ?

snezzsp 03-10-2017 04:13

Re: Music Menu
 
Quote:

Originally Posted by Visinescu (Post 2502043)
YOLO Romanian

[ro]

ADMINMENU_TITLE = \wMeniu \yMuzica ADMIN
ADMINMENU_STOPALL = \wOpreste muzica la \yToti
ADMINMENU_STOPONE = \wOpreste \wMuzica \yJucatorului
ADMINMENU_PLAYALL = \wPorneste pentru \ytoti

ADMINSTOPMENU_TITLE = \yOpreste \wmuzica pentru

ADMINMUSICMENU_TITLE = \yPorneste \wpentru toti

MUSICMENU_TITLE = \yMeniu \rMuzica
MUSICMENU_STOP = \wOpreste \yMuzica
MUSICMENU_ADMIN = \wMeniu \yMuzica ADMIN

LISTENING_TO = %s Acum asculti %s
FORCED_LISTENING_TO = %s Un admin ti-a pus %s
NO_ONE_LISTENING = %s Nimeni nu asculta muzica
ADMIN_STOP = %s Un admin ti-a oprit muzica

Thanks! Added :)

snezzsp 03-10-2017 04:21

Re: Music Menu
 
Quote:

Originally Posted by Relaxing (Post 2501908)
To begin with, all players have to download every single music that you put to your configs.
Second, I would suggest using a website for music.
To end with, there's tons of plugins like this. You should call this plugin a practice for yourself because most of servers do not use these stuff like this. A true thing is that peeps do not play games for music.

Well thanks for commenting, but I still think this is the better way. Much easier than creating a website, because slow connections would f*ck up if playing while 'downloading' music. In this way, with FastDL the music will download in few seconds.

I was looking for a plugin like this for my server, and I didn't find one like this, with a .ini to include the music you want. Other plugins automatically add all the songs in a directory to the menu, and I didn't like that. In others you have to edit the .sma, and that's even worse. So I think this is a new idea, and it could work. See ya

RAW_192 04-05-2017 08:00

Re: Music Menu
 
Every Player Should Get the option of disabling the music if he doesn't want to hear it ..

If you can add this here it would be great ..

Relaxing 04-05-2017 13:15

Re: Music Menu
 
Theres 3 commands:
stopsound - for .wav files
mp3 stop - .mp3 files
and the unstoppable 'volume 0'

D3XT3R 04-08-2017 17:09

Re: Music Menu
 
Nice Plugin! i was wait for this plugin long time! simple to use


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

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