AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   MP3 player for client [Update 19.08.08] (https://forums.alliedmods.net/showthread.php?t=75461)

Brute 08-06-2008 01:26

MP3 player for client [Update 19.08.08]
 
3 Attachment(s)
Introduction:
MP3 PLAYER FOR CLIENT is the plugin,
allowing to lose the client for own tracks, by means of it the opportunity to lose for the tracks not leaving from game is given to the client. MP3 the player supports unceasing playback - that very conveniently and is the main advantage of this plug-in above analogues, and also there is a function of viewing playlist. Fill up the playlist the client can by means of the console, or having loaded a configuration file containing commands of addition of tracks in playlist.(читать статью на русском)

Installation:
1. Download archive "MP3 player for client (full packet).zip"
2. Unpack contents of archive in any place convenient for you.
3. Transfer contents of a folder " MP3 player for client " in moddir.
4. Add a line "MP3_player_for_client.amxx" in yours plugins.ini

cvar:
Code:

"amx_mp3_player" - 1 (by default) - the plug-in is active, other values switch off it.
Use:
1. Creation of a directory:
To use MP3 a player you should create a directory with name MP3 in a directory a fashion(For example for a fashion counter-strike the address of a directory will be approximately such: C:\Program Files\Steam\steamapps\yourEmail\counter-strike\cstrike\MP3)


2. Filling of your directory by music:

Simply move(or copy) files in the directory earlier created by you, but remember:
1) the Player works only with MP3 files;
2) the Maximal length of a track should be no more than 9 minutes of 59 seconds (9:59), the minimal length of a track not less than 30 seconds;
3) the Maximal length of a name of a file (without expansion) no more than 64 symbols.
4) the Maximum quantity of tracks 100.


3. Creations playlist:
Without playlist playback is not possible! To create playlist open a directory a fashion(For example for a fashion counter-strike the address of a directory will be approximately such: C:\Program Files\Steam\steamapps\yourEmail\counter-strike\cstrike\),Create the text document, rename it in MP3 and necessarily change its expansion on cfg. As a result at you the file "MP3.cfg" should turn out, open it by means of the standard program "notepad", and add in it the following information:
"mp3_addtrack" "the name of a track" "duration"
For example:
"mp3_addtrack" "Rammstein-Links 2 3 4" "3:36"
"mp3_addtrack" "123" "0:42"
Pay attention:
1) Expansion of a file to specify it is not necessary!
2) it is possible to specify Time only so in such format: "m:ss" (where m-quantity of minutes, ss-quantity of seconds)
3) Necessarily quote each parameter: " "
4) the Name of a track should not be empty.
Necessarily observe these rules, mistakes in a chat and in the console differently will spread.


4. Use of the menu.
1. To cause the menu it is necessary to register a command in the console: mp3_menu, also it is possible to cause the menu by means of a chat (say, say_team): it is necessary to print /mp3.
2. Keys:
1) Play - to start playback(the console command mp3_play)
2) Next - to pass to playback of a following track(the console command mp3_next)
3) Prev - to pass to playback of the previous track (the console command mp_prev)
4) Stop - to stop playback(a console command mp3_stop)

7) (Re)Load - to reload/load (if you have just created) yours palylist. (a console command mp3_reload)
9) Help - a call of the information (the console command mp3_help)
0) Close - closes the menu.

CHANGELOG:
Quote:

Changes in the version 'S 1.1':

*it is changed: the Maximum quantity of tracks is changed with 99 on 100.
*is corrected: mistakes appearing at excess of a maximum quantity of tracks.
*it is changed: now the leaf with tracks is deduced not in game MOTD, and in the console on 10.
*is corrected: contents of Help-files.
*are changed: contents of a language file (Brute_MP3.txt)
*the code of a plugin is a little optimized.
The current version S 1.1

I wait for your reports on work of a plugin...

{PHILMAGROIN} 08-06-2008 03:29

Re: MP3 player for client
 
Sounds good. havent tested it yet

Styles 08-06-2008 05:01

Re: MP3 player for client
 
wow this looks great (Coding) I just took a quick glance but still ;) WoW!

F4RR3LL 08-07-2008 05:05

Re: MP3 player for client
 
nice plugin. thx

xjose93 08-15-2008 13:27

Re: MP3 player for client
 
Dont download music, dont have precache =S.

xjose93 08-15-2008 13:47

Re: MP3 player for client
 
Can u create a cvar to admin play music to all? and players can stop music? :) Thx.

Brute 08-15-2008 19:27

Re: MP3 player for client
 
[en]
Mp3-player for clients, instead of for administration. A mp3-player not that not precache. The mp3-player simply loses for that your client wishes to hear. By the way, small updating will be fast, has found pair defects.

[ru]
mp3-плеер для клиентов, а не для администрации. mp3-плеер не чего не precache. mp3-плеер просто проигрывает то, что хочет слышать ваш клиент.
Кстати, скоро будет небольшое обновление, нашёл пару недочетов.

Mirun.Frontier 08-16-2008 17:01

Re: MP3 player for client
 
Very Interesting. Mp3s... With no precaching? Indeed should be good.
Strange, its not working for me. The plugin works n all but the mp3 doesn't play.

sekos 08-17-2008 11:19

Re: MP3 player for client
 
Quote:

Originally Posted by Mirun.Frontier (Post 670711)
The plugin works n all but the mp3 doesn't play.

same

YamiKaitou 08-17-2008 11:24

Re: MP3 player for client
 
This will not work unless the client has the mp3 files on their computer. And the only way to do that is to precache them. Good try, but unless you play it through a web page, you won't get around the precaching part


All times are GMT -4. The time now is 03:06.

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