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

Music Menu From File - V1.1


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
SUSYABASHTI
Junior Member
Join Date: Nov 2014
Old 11-25-2014 , 16:23   Music Menu From File - V1.1
Reply With Quote #1


Music Menu From File
V1.1

Description

This plugin like any other music menu, has the same purpose.
Play music to the client, change the VOL or song and stop the song whenever you want.
The music is played only for the client himself, not to the whole server.

Features
  • Add Songs from File instead of editing the source code every time.
  • Very comfortable for those who have Hosting.
  • Enter the whole songs list, or just click next song.
  • Adjustable Volume and Stop the Music Option.

Client Commands
/music - Opens the music menu.

Adding songs to your server
Code:
"Song Name" "Song File"
Example:

Code:
"Pyramids" "Your Folder/pyramids.mp3"
"Pyramids" "Songs/pyramids.mp3"
* NOTE: You don't need to add "sound/" at start.

Installation
  • Download and complie the plugin, add it to your plugins.ini after movin it into the plugins dir (addons/amxmodx/plugins/)
  • Download the songs.ini file, and add your songs.
  • Restart the server

Changelog
Code:
- Version: 1.1 | November 26, 2014
 * Removed slow-hacking code part from plugin, added "Ask Permission" menu instead.
Credits

Me - create the plugin.

Have Fun!

Downloads
Attached Files
File Type: sma Get Plugin or Get Source (MusicMenuFile.sma - 890 views - 5.5 KB)
File Type: ini songs.ini (116 Bytes, 359 views)

Last edited by SUSYABASHTI; 11-26-2014 at 10:48. Reason: Plugin Update
SUSYABASHTI is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 11-26-2014 , 08:12   Re: Music Menu From File - V1.0
Reply With Quote #2

Remove the slowhacking:

Code:
public client_putinserver( iIndex ) {     g_flVolume[ iIndex ] = MIN_VOL;     client_cmd( iIndex, "; MP3Volume %.1f", MIN_VOL); }
__________________
Kia is offline
SUSYABASHTI
Junior Member
Join Date: Nov 2014
Old 11-26-2014 , 09:34   Re: Music Menu From File - V1.0
Reply With Quote #3

Quote:
Originally Posted by Kia View Post
Remove the slowhacking:

Code:
public client_putinserver( iIndex ) {     g_flVolume[ iIndex ] = MIN_VOL;     client_cmd( iIndex, "; MP3Volume %.1f", MIN_VOL); }
Well, is the part where they can change the volume is allowed?
SUSYABASHTI is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 11-26-2014 , 09:43   Re: Music Menu From File - V1.0
Reply With Quote #4

Quote:
Originally Posted by SUSYABASHTI View Post
Well, is the part where they can change the volume is allowed?
It changes the clients settings without their permission. It's slowhack. You must ask the client if they want to change volume, else you must remove the slowhack from the code.
__________________
Jhob94 is offline
SUSYABASHTI
Junior Member
Join Date: Nov 2014
Old 11-26-2014 , 10:47   Re: Music Menu From File - V1.0
Reply With Quote #5

Quote:
Originally Posted by Jhob94 View Post
It changes the clients settings without their permission. It's slowhack. You must ask the client if they want to change volume, else you must remove the slowhack from the code.
Ok, I've updated the plugin. read changelog
SUSYABASHTI is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 11-26-2014 , 10:55   Re: Music Menu From File - V1.1
Reply With Quote #6

mp3volume is a command that Valve has blocked, so remove it completely. Plus, I see no reason why you need to change their volume anyway.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
SUSYABASHTI
Junior Member
Join Date: Nov 2014
Old 11-26-2014 , 11:15   Re: Music Menu From File - V1.1
Reply With Quote #7

Quote:
Originally Posted by YamiKaitou View Post
mp3volume is a command that Valve has blocked, so remove it completely. Plus, I see no reason why you need to change their volume anyway.
I would have think like you if i wasn't use the plugin before posting it.
when i added the plugin on my server, players said the Volume Adjust option helped them to control the music volume faster. i think like them as well.
SUSYABASHTI is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 11-26-2014 , 11:38   Re: Music Menu From File - V1.1
Reply With Quote #8

Quote:
Originally Posted by YamiKaitou View Post
mp3volume is a command that Valve has blocked, so remove it completely
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
SUSYABASHTI
Junior Member
Join Date: Nov 2014
Old 11-26-2014 , 14:10   Re: Music Menu From File - V1.1
Reply With Quote #9

Am i allowed to upload a version without the Volume Control so there will be two?
SUSYABASHTI is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 11-26-2014 , 14:13   Re: Music Menu From File - V1.1
Reply With Quote #10

Valve blocked the command, so you shouldn't be using it at all
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Reply



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 17:54.


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