AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Music Menu From File - V1.1 (https://forums.alliedmods.net/showthread.php?t=252101)

SUSYABASHTI 11-25-2014 16:23

Music Menu From File - V1.1
 
2 Attachment(s)

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

Kia 11-26-2014 08:12

Re: Music Menu From File - V1.0
 
Remove the slowhacking:

Code:
public client_putinserver( iIndex ) {     g_flVolume[ iIndex ] = MIN_VOL;     client_cmd( iIndex, "; MP3Volume %.1f", MIN_VOL); }

SUSYABASHTI 11-26-2014 09:34

Re: Music Menu From File - V1.0
 
Quote:

Originally Posted by Kia (Post 2228395)
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?

Jhob94 11-26-2014 09:43

Re: Music Menu From File - V1.0
 
Quote:

Originally Posted by SUSYABASHTI (Post 2228429)
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.

SUSYABASHTI 11-26-2014 10:47

Re: Music Menu From File - V1.0
 
Quote:

Originally Posted by Jhob94 (Post 2228437)
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

YamiKaitou 11-26-2014 10:55

Re: Music Menu From File - V1.1
 
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.

SUSYABASHTI 11-26-2014 11:15

Re: Music Menu From File - V1.1
 
Quote:

Originally Posted by YamiKaitou (Post 2228461)
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.

YamiKaitou 11-26-2014 11:38

Re: Music Menu From File - V1.1
 
Quote:

Originally Posted by YamiKaitou (Post 2228461)
mp3volume is a command that Valve has blocked, so remove it completely


SUSYABASHTI 11-26-2014 14:10

Re: Music Menu From File - V1.1
 
Am i allowed to upload a version without the Volume Control so there will be two?

YamiKaitou 11-26-2014 14:13

Re: Music Menu From File - V1.1
 
Valve blocked the command, so you shouldn't be using it at all


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

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