AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   MP3 MENU (https://forums.alliedmods.net/showthread.php?t=312774)

kapitana 12-15-2018 14:37

MP3 MENU
 
2 Attachment(s)
As the title says this is some sort of mp3 music plugin, but what's really special about this one is that the user DOESN'T download the music when he enters the server. The "songs" are actually links to music (music which is uploaded to a domain). The songs can only be played if they are uploaded to a domain. I have added several "references".

***IN GENERAL***
it's a list of songs, which are played online and do not require to be downloaded. I made it so only admins can have the right to play music, and the user gets asked whether he likes to listen to the song.

***IF IT'S REQUESTED***
In future version maybe I'll make it so the user can open the menu and choose a song for himself.

***Console Commands***
mp3_menu
- Admin only command

***Say Commands***
/stop
/stopmusic
- Stops the music

***DISCLAIMER***
This was actually a request from a certain person(about 4-6 years ago).
Also, since I can't use html, I used ConnorMcLeod's HTML Windows Media Player code(Half Life Media Player III (3.1.1 07-24-2009)). All credit for the Windows Media Player registration goes to him.

***Credits***
ConnorMcLeod for his HTML Windows Media Player code.

***EDIT***
Just found out that Windows Media Player does not load on STEAM users, which means that the music won't play on steam clients.

EPSON 12-15-2018 17:04

Re: MP3 MENU
 
[ChatMessage] ML_NOTFOUND: MUSIC_CHOSEN
[ChatMessage] ML_NOTFOUND: MUSIC_CHOSEN
[ChatMessage] ML_NOTFOUND: MUSIC_CAN_STOP

Alber9091 12-15-2018 17:47

Re: MP3 MENU
 
Quote:

Originally Posted by EPSON (Post 2629275)
[ChatMessage] ML_NOTFOUND: MUSIC_CHOSEN
[ChatMessage] ML_NOTFOUND: MUSIC_CHOSEN
[ChatMessage] ML_NOTFOUND: MUSIC_CAN_STOP

Add mp3_menu.txt in cstrike/addons/amxmodx/data/lang

EPSON 12-15-2018 18:00

Re: MP3 MENU
 
https://i.imgur.com/h8dio39.jpg
Music not playing, im steam , server also steam so don't say any shit about non-steam.

kapitana 12-16-2018 06:19

Re: MP3 MENU
 
Hmm it actually works for non-steam users only. Very interesting. The plugin is NOT using any kind of slow hacking. I'll look in to it when I have some free time. But very interesting indeed.
**EDIT** Just found out that Windows Media Player DOESN'T LOAD on steam users(I do not know the reason of this). But if Windows Media Player doesn't load on steam users, I don't think there is a way of fixing it. It's not really a problem with the code that can be edited so it would work. It's more like some kind of restriction from steam-sided support?

Mordekay 12-16-2018 11:42

Re: MP3 MENU
 
Yes, because no one likes you to run code on their computers without permission.

kapitana 12-16-2018 12:18

Re: MP3 MENU
 
Quote:

Originally Posted by Mordekay (Post 2629418)
Yes, because no one likes you to run code on their computers without permission.

What do you mean run code on their computers without permission?? This is based on Windows Media Player -- something like this: https://forums.alliedmods.net/showth...33070?p=833070.
It opens Windows Media Player online ... it doesn't open it from your computer if this is what you mean. And without permission?? The user clearly gets asked whether he wants to listen to the song.

Mordekay 12-16-2018 13:12

Re: MP3 MENU
 
Right, it asks you, got that wrong.
Afaik this has been stoped by valve, but i cannot tell why exactly.

Visinescu 12-22-2018 21:30

Re: MP3 MENU
 
I've found a different way to be able to use mp3s, but you have to host them and make a motd for each one of them using this website. you need flash player in order to be able to listen to these. in general windows 10 has a flash codec already built in so it should work for most without the need to download it.

It even works for online radios, but you must have the original radio url, also add "/;" at the end in order to be played. check the image down for example
https://i.imgur.com/N9Uf2tJ.png

Relaxing 12-23-2018 08:13

Re: MP3 MENU
 
Quote:

Originally Posted by Visinescu (Post 2630596)
I've found a different way to be able to use mp3s, but you have to host them and make a motd for each one of them using this website. you need flash player in order to be able to listen to these. in general windows 10 has a flash codec already built in so it should work for most without the need to download it.

It even works for online radios, but you must have the original radio url, also add "/;" at the end in order to be played. check the image down for example
https://i.imgur.com/N9Uf2tJ.png

In my opinion I always found music/radio plugins useless because of Steam Community Overlay covering everything. Music, web browser, purchases etc.

kapitana 12-23-2018 11:32

Re: MP3 MENU
 
Quote:

Originally Posted by Visinescu (Post 2630596)
I've found a different way to be able to use mp3s, but you have to host them and make a motd for each one of them using this website. you need flash player in order to be able to listen to these. in general windows 10 has a flash codec already built in so it should work for most without the need to download it.

It even works for online radios, but you must have the original radio url, also add "/;" at the end in order to be played. check the image down for example
https://i.imgur.com/N9Uf2tJ.png

Just tried it. I am no expert at html, but the problem I get most likely isn't from bad html code:
https://steamuserimages-a.akamaihd.n...7FA412FA1CE5C/

Using the newest windows 10 update. I update frequently and I hate myself for doing so, windows updates get worse every time.
*EDIT* Using newest CS version from STEAM by the way.

Visinescu 01-20-2019 17:25

Re: MP3 MENU
 
Quote:

Originally Posted by kapitana (Post 2630677)
Just tried it. I am no expert at html, but the problem I get most likely isn't from bad html code:
https://steamuserimages-a.akamaihd.n...7FA412FA1CE5C/

Using the newest windows 10 update. I update frequently and I hate myself for doing so, windows updates get worse every time.
*EDIT* Using newest CS version from STEAM by the way.

Did you copy the HTML code and placed it in the MOTD after you've generated it ?

Visinescu 01-20-2019 17:29

Re: MP3 MENU
 
Quote:

Originally Posted by Relaxing (Post 2630639)
In my opinion I always found music/radio plugins useless because of Steam Community Overlay covering everything. Music, web browser, purchases etc.

Oh yes indeed , though i used to need music/radio plugins because I've had a crappy PC. Now i mostly use plugins for promoting radios(Indie radios trying to get attention).

HamletEagle 04-08-2020 05:57

Re: MP3 MENU
 
Unapproved because it's non steam only.


All times are GMT -4. The time now is 20:41.

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