Raised This Month: $110 Target: $400
 27% 

Music Player - Advanced [ No Server Music Files To Download ]


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff        Approver:   Backstabnoob (8)
Baws
Veteran Member
Join Date: Oct 2012
Old 02-19-2014 , 23:34   Music Player - Advanced [ No Server Music Files To Download ]
Reply With Quote #1

Music Player - Advanced v3.0



-Description-

In this plugin, you can listen to music while you are in-game instead of going to Youtube or any other music websites and lagging all day in the server. Plus, in this plugin there's no need to make the players download any file. It's the most powerful music player ever made. There's no limit of how many songs you add to the file. If you like this plugin make sure to rate it

-Commands-

Code:
Players:
/musichelp - Opens a motd to show all the commands available. [ If ADMIN_CFG, it shows the amx_addsong command ]
/music - Opens the list of the settings and you can play a song from there.
/search song/name - Searches for a specific song instead of scrolling for hours in the menu.
/replay - Replays the last played song.
/copy - Copies the last song played by the last player.
/stop - Stops the music.

Admins: (CFG)
amx_addsong "Song name" "Url/Link" | Attention: Put them with quotes. 
E.g: amx_addsong "Billy Ocean - Suddenly" "http://www.youtube.com/watch?v=6H0iYsHlanw"

Admins: (Cvar)
sv_connectmessage 1 - Default is 1 [ 1 = on 0 = off ]
sv_showcommands 0 - Default is 0 [ 1 = Shows the commands in chat 0 = Don't show the commands in chat ]
-Installation-

Put the .amxx in cstrike/addons/amxmodx/plugins
-Then in cstrike/addons/amxmodx/configs/plugins.ini
You will type( Anywhere under 3rd party plugins ):
PHP Code:
AdvancedMusicPlayer.amxx 
Then put the songlist.txt files in cstrike/addons/amxmodx/configs.

After you put the songlist.txt files, make sure that you added the AdvMusicPlayer.html file
in same directory as the songlist.txt file.

Lang File: AdvMusicPlayer.txt you need to put it in cstrike/addons/amxmodx/data/lang

-Notes-

What do you need to know is how to add songs to the plugin or the server. Well it's simple. You can add any song links you like. Some websites don't accept or don't let it play, it's their domains privacy. I recommend you to use Youtube. It's the most popular music website of all time and it's really a good website.
The format is: "Song Name" "Song URL/Link"
For example: "Eminem - Mockingbird" "http://www.youtube.com/watch?v=S9bCLPwzSC0"

You add that line in the songlist.ini file under the lines. It's 1 song each line.

This is a Music Player which when you want to play some music, it will only be played for the person not the whole server.
Note that you don't need to reload the file anymore to add the song or restart the server or the map. Once you have done
amx_addsong "song" "url/link" the song will automatically be added to the file and to the server.

The multilingual file ' AdvMusicPlayer.txt ' will be uploaded separately as i will update it more often as the people who will help
me translate more and more.

Important 1: If your MOTD is all white or there's nothing at all when you want to play the music well you can fix it by following these steps.

Step 1: Open your cs folder (Steamapps/common/Half-Life)
Step 2: You create a new folder named "cstrike_addon"
Step 3: Close your cs folder and open your Counter-Strike and you're done!

Important 2: If in the center of your MOTD you got 'Missing Plug-in' well you need to follow these steps.

Step 1: Go to the Adobe Flash Player site (http://www.adobe.com/nl/products/flashplayer/)
Step 2: Click the download link: 'download flash player'
Step 3: Choose Other operating system or browser?
Step 4: Select your operating system.
Step 5: Then version: flash player 10.1 - other browsers and download it.
Step 6: Install flash player than reboot your pc.
Step 7: Have fun listening to music in-game!

JW Player: If you want to host the player yourself, download the player in the attachments.
However this plugin work just fine without you hosting the player.


-Credits-

Feel free to translate in this thread: Translation Request
Languages already added: [en], [de], [ro], [bg], [sr], [sv] more to come...?


-ChangeLog-

Plugin ChangeLog:
Code:
v1.0:
* Released.
v1.1:
* Fixed some spacing.
v1.2:
* Fixed a variable.
v1.3:
* Added amx_addsong.
* Fixed some spacing.
v1.4:
* Re-written all the plugin to make it nice.
* Removed ColorChat Stock.
* Included colorchat.
v1.5:
* Re-written the plugin.
* Made all the changes required.
* Used Arrays.
* Added Multilingual.
* Removed amx_reloadfile.
* Removed all the 'b'.
* Added a connect message.
* Added client_print_color instead of ColorChat.
v1.6:
* Fixed the song limit.
* Fixed some spacing as well.
v1.7:
* Fixed amx_addsong lines.
v1.8:
* Added NOT_FOUND in lang file.
v1.9:
* Added a CVAR to show the commands in chat or not.
v2.0:
* Added /musichelp command.
v2.1:
* Made the player MOTD more sexy.
v2.2:
* Added volume controller.
* Added repeat the song option.
* Added save the settings option.
* Added another menu for the new stuff.
* Made all the MOTDs more sexy.
* Made player MOTD have the same seconds, no bugs.
* Fixed some spacing as well.
v2.3:
* Changed Settings Menu Cases.
v2.4:
* Made ML system 100%.
* Updated the html file.
v2.5:
* Added Stop Song in the menu.
* Added menu returns in case 1 and 2.
v2.6:
* Edited the lang file.
* Added a client print if there's no song to copy.
* Added a client print where it says you copied the song when you use the /copy command.
v2.7:
* Added Bulgarian.
* Fixed some spacing.
v2.8:
* Checked AMXX_VERSION_NUM for client_print_color.
* Changed the handlers; item.
v2.9:
* Removed unused stuff.
v3.0:
* Fixed the choosing song.

-Thank you, Baws.
Attached Files
File Type: txt AdvMusicPlayer.txt (12.9 KB, 1409 views)
File Type: sma Get Plugin or Get Source (AdvancedMusicPlayer.sma - 1959 views - 29.5 KB)
File Type: zip AdvancedMusicPlayer.zip (13.1 KB, 1713 views)
File Type: zip JW Player.zip (110.8 KB, 1352 views)
__________________
Like my clean plugins and work?

Last edited by Baws; 07-11-2014 at 21:48.
Baws is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 02-19-2014 , 23:42   Re: Music Player - Advanced
Reply With Quote #2

What happens when an advertisement is being played?
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
Baws
Veteran Member
Join Date: Oct 2012
Old 02-19-2014 , 23:44   Re: Music Player - Advanced
Reply With Quote #3

There's no advertisements. Nothing but the song.
__________________
Like my clean plugins and work?
Baws is offline
Blizzard_87
AlliedModders Donor
Join Date: Oct 2012
Old 02-20-2014 , 04:34   Re: Music Player - Advanced
Reply With Quote #4

If it only works with YouTube links then name should be something like
YouTube music player
__________________
Blizzard_87 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-20-2014 , 05:32   Re: Music Player - Advanced
Reply With Quote #5

About the package : you should create the directories structure so people won't try to guess where files go, remove .bak file, and please attach also seperately .sma.
__________________
Working on : CS Weapon Mod (72%) , MonsterAI (PAUSED),

Arkshine is online now
myusername
Senior Member
Join Date: Aug 2012
Old 02-20-2014 , 08:36   Re: Music Player - Advanced
Reply With Quote #6

Really nice. But there are some delay(lag) when opens motd. Also when motd opens ping goes up.
How about adding group?

Edit: In .html why is there pre outside of the body?
__________________
Rest in piece.

Last edited by myusername; 02-20-2014 at 09:26.
myusername is offline
Just4Games
Senior Member
Join Date: Jan 2013
Location: Romania
Old 02-20-2014 , 13:31   Re: Music Player - Advanced
Reply With Quote #7

Quote:
Originally Posted by myusername View Post
Edit: In .html why is there pre outside of the body?
Instead of not closing the center tag and put it over and over.. do like this:

PHP Code:
<center>[MEDIA_NAME]

Music player brought to you by <b>Baws<b/>.

NoteLoading time depends on your Internet speed.

You may close this MOTDthe song will keep playing.

If 
you ever wanted to stop ittype <b>/stop</b>.</center
Just4Games is offline
Groven
AlliedModders Donor
Join Date: Apr 2011
Location: Sweden
Old 02-20-2014 , 14:48   Re: Music Player - Advanced
Reply With Quote #8

Looks nice
__________________

Groven is offline
Baws
Veteran Member
Join Date: Oct 2012
Old 02-20-2014 , 17:35   Re: Music Player - Advanced
Reply With Quote #9

Thanks for the nice comments and suggestions. You can use other links as music so it's not really just youtube, but youtube is preferred.

@Just4Games, won't work.
@myusername, it depends on your internet or server speed. What do you mean by group? And that's how i did the .html. It's good like that.

Updated as requested.
__________________
Like my clean plugins and work?
Baws is offline
myusername
Senior Member
Join Date: Aug 2012
Old 02-21-2014 , 08:38   Re: Music Player - Advanced
Reply With Quote #10

Quote:
Originally Posted by baws View Post
it depends on your internet or server speed. What do you mean by group? And that's how i did the .html. It's good like that.
Groups like this one.

I suggest use this html
PHP Code:
<html>
<
head>
<
style type="text/css">body{background:#000000;color:#FFB000;text-align:center;margin-left:8px;margin-top:0px;}</style>
</head>
<
body>
<
center>
    [
MEDIA_NAME]<br>
    
Music player brought to you by <b>Baws<b/>.<br>
    
NoteLoading time depends on your Internet speed.<br>
    
You may close this MOTDthe song will keep playing.<br>
    If 
you ever wanted to stop ittype <b>/stop</b>.<br>
    <
object type="application/x-shockwave-flash" data="http://allied-gamers.com/player.swf" height="240" width="400" quality="high">
        <
param name="movie" value="http://allied-gamers.com/player.swf">
        <
param name="FlashVars" value="backcolor=0x000000&amp;frontcolor=0xCCCCCC&amp;lightcolor=0x996600&amp;searchbar=false&amp;autostart=true&amp;autostart=true&amp;volume=70&amp;file=[MEDIA_URL]">
    </
object>
</
center>
</
body>
</
html
EDIT: I forgot to say you need to add utf-8 in html (in head)
Quote:
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
__________________
Rest in piece.

Last edited by myusername; 02-21-2014 at 08:40.
myusername is offline
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 03:08.


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