Raised This Month: $12 Target: $400
 3% 

Jukebox v1.1


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff       
wicked95
Member
Join Date: Dec 2012
Old 08-04-2015 , 18:53   Jukebox v1.1
Reply With Quote #1

Description: With this plugin you can play songs throu a motd window. Plugin reads an .ini file for the songs. The songs in the menu can be aranged by genre. There's a hud time for the song playing + timeline. You can put an amount of songs in a queue and let them be played one by one while playing. Players have a hud customisation menu. They can move the hud up/down/left/right/center it or just hide the hud. There's an option in the menu where players can request songs to be added in the server. An admin with the required flag can view and delete the requeest file from the game console.

Important!
Other plugins may interfear with this one. If you use another plugin that uses motd please include the attached include file to the plugin and in the code after showing the motd to a player insert stop_song(player id) so that the plugin can stop the hud time counting. If u don't the song will be stopped but the hud timer will go on.

Commands:
/jukebox | /music | /mp3 - opens the main menu
/play - plays the song
/stop - stops the song
/next - plays the next song in the queue
/showsong - show the song you're currently listening to the other players in the server
/replay - turns on/off repeat current song option

Admin Commands:
amx_requests - prints the requested songs from other players in the console
amx_del_requests - deletes the requests file

Screenshots: http://imgur.com/a/Q7QCp

ChangeLog:
  • v1.1 Added Option to add/edit/remove songs from the main menu in game.(menu item only shows to players with the defined flag)
  • v1.0 Plugin Release

Requirements:
Steam

Files:
configs/jukebox_songs.ini
plugins/jukebox.amxx
scripting/jukebox.sma
scripting/include/jukebox_bywicked.inc
Attached Files
File Type: inc jukebox_bywicked.inc (566 Bytes, 325 views)
File Type: ini jukebox_songs.ini (301 Bytes, 416 views)
File Type: sma Get Plugin or Get Source (jukebox.sma - 753 views - 44.9 KB)
__________________

Last edited by wicked95; 03-05-2019 at 10:38. Reason: Replaced : with ; in code for compiling
wicked95 is offline
Shiina.Mashiro
Senior Member
Join Date: Sep 2014
Location: Vietnam
Old 08-05-2015 , 06:45   Re: Jukebox [Online Mp3 stream]
Reply With Quote #2

Well done!
Worked like a charm.

A little suggestion: You can add a small feature like addsong command
Code:
amx_addsong <songname> <url>
__________________
Shiina.Mashiro is offline
tousif
AlliedModders Donor
Join Date: Nov 2014
Location: India
Old 08-06-2015 , 04:38   Re: Jukebox [Online Mp3 stream]
Reply With Quote #3

Nice work
tousif is offline
wicked95
Member
Join Date: Dec 2012
Old 08-06-2015 , 09:00   Re: Jukebox [Online Mp3 stream]
Reply With Quote #4

Quote:
Originally Posted by Shiina.Mashiro View Post
Well done!
Worked like a charm.

A little suggestion: You can add a small feature like addsong command
Code:
amx_addsong <songname> <url>
I'll try something else cuz i don't think in console is best decition.
And thanks for the replies

Edit: I made a menu with that option in the new update :d Hope u like it.
__________________

Last edited by wicked95; 08-06-2015 at 12:46.
wicked95 is offline
BigDaddyJP
New Member
Join Date: Dec 2015
Old 01-22-2016 , 00:50   Re: Jukebox v1.1
Reply With Quote #5

*.sma won't compile and "Get Plugin link" gives errors:

jukebox.sma(1187) : error 001: expected token: ";", but found ":"
jukebox.sma(1187) : error 029: invalid expression, assumed zero

I've searched every kind of in-game music player I could find. Help me, Obi-Wan... you're my only hope!
BigDaddyJP is offline
tousif
AlliedModders Donor
Join Date: Nov 2014
Location: India
Old 01-22-2016 , 01:43   Re: Jukebox v1.1
Reply With Quote #6

he missed a semicolon at that line. take this one :p
Attached Files
File Type: sma Get Plugin or Get Source (jukebox.sma - 1038 views - 45.1 KB)
tousif is offline
CrAzY MaN
Senior Member
Join Date: Mar 2017
Location: India
Old 06-02-2017 , 05:07   Re: Jukebox v1.1
Reply With Quote #7

Its amazing...
I am using this plugin for 6 months on my server..

It will be soooo good if it directly plays from youtube.
__________________
CrAzY MaN is offline
Electric Boy
Member
Join Date: Jun 2017
Old 06-02-2017 , 20:59   Re: Jukebox v1.1
Reply With Quote #8

More another shit thats isnt working
Electric Boy is offline
Airkish
AlliedModders Donor
Join Date: Apr 2016
Location: Lithuania
Old 06-03-2017 , 03:08   Re: Jukebox v1.1
Reply With Quote #9

Everything works but there's no sound. Not only me but for all players.
Any help?
__________________
Airkish is offline
CrAzY MaN
Senior Member
Join Date: Mar 2017
Location: India
Old 06-03-2017 , 03:46   Re: Jukebox v1.1
Reply With Quote #10

Its working fine for me
I think on NON STEAM SERVER, STEAMERS won't run this -_-
__________________
CrAzY MaN 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 07:05.


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