Raised This Month: $32 Target: $400
 8% 

Music Menu


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
snezzsp
BANNED
Join Date: Apr 2015
Location: GB
Old 03-07-2017 , 13:50   Music Menu
Reply With Quote #1

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.
Attached Files
File Type: ini music.ini (75 Bytes, 344 views)
File Type: txt musicmenu.txt (2.3 KB, 209 views)
File Type: sma Get Plugin or Get Source (musicmenu.sma - 819 views - 7.0 KB)

Last edited by snezzsp; 04-26-2018 at 16:12. Reason: Update
snezzsp is offline
Send a message via ICQ to snezzsp Send a message via AIM to snezzsp Send a message via Yahoo to snezzsp Send a message via Skype™ to snezzsp
snezzsp
BANNED
Join Date: Apr 2015
Location: GB
Old 03-08-2017 , 11:14   Re: Music Menu
Reply With Quote #2

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

Last edited by snezzsp; 03-08-2017 at 11:16. Reason: .-
snezzsp is offline
Send a message via ICQ to snezzsp Send a message via AIM to snezzsp Send a message via Yahoo to snezzsp Send a message via Skype™ to snezzsp
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 03-08-2017 , 16:13   Re: Music Menu
Reply With Quote #3

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.
__________________
Relaxing is offline
Visinescu
Senior Member
Join Date: Dec 2015
Location: England now,Home Romania
Old 03-09-2017 , 06:37   Re: Music Menu
Reply With Quote #4

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
Visinescu is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 03-09-2017 , 08:19   Re: Music Menu
Reply With Quote #5

Quote:
Originally Posted by Visinescu View Post
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 .. ?
__________________
edon1337 is offline
snezzsp
BANNED
Join Date: Apr 2015
Location: GB
Old 03-10-2017 , 04:13   Re: Music Menu
Reply With Quote #6

Quote:
Originally Posted by Visinescu View Post
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 is offline
Send a message via ICQ to snezzsp Send a message via AIM to snezzsp Send a message via Yahoo to snezzsp Send a message via Skype™ to snezzsp
snezzsp
BANNED
Join Date: Apr 2015
Location: GB
Old 03-10-2017 , 04:21   Re: Music Menu
Reply With Quote #7

Quote:
Originally Posted by Relaxing View Post
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

Last edited by snezzsp; 03-10-2017 at 04:22.
snezzsp is offline
Send a message via ICQ to snezzsp Send a message via AIM to snezzsp Send a message via Yahoo to snezzsp Send a message via Skype™ to snezzsp
RAW_192
Senior Member
Join Date: Feb 2017
Old 04-05-2017 , 08:00   Re: Music Menu
Reply With Quote #8

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 ..
RAW_192 is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 04-05-2017 , 13:15   Re: Music Menu
Reply With Quote #9

Theres 3 commands:
stopsound - for .wav files
mp3 stop - .mp3 files
and the unstoppable 'volume 0'
__________________
Relaxing is offline
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 04-08-2017 , 17:09   Re: Music Menu
Reply With Quote #10

Nice Plugin! i was wait for this plugin long time! simple to use
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:23.


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