SA-MP Forums Archive
[FilterScript] Music Player - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Music Player (/showthread.php?tid=320082)

Pages: 1 2 3


Music Player v.2 - BRICS - 21.02.2012

Description:

Two weeks later I created this script, and now spread its version of the
presentation here. This script is a music player, it is not one of those scripts
players, in which at eight tracks, adding that going on in the script code, and
they play for all players, this is - multi-functional system for each player,
with lots of functions and features. Here are the main features:
  1. Any player can add to his recordings of music from the internet url, ask her
    name, or add a ready-made from the directory server.
  2. Ability to delete your recordings to each player
  3. Audio recordings can always be edited by selecting the appropriate menu
    item, in particular, you can change the title and url
  4. Ability to change settings allow each player to customize the player by
    yourself, in the setting include:
    1. Changing the time display the names of audio
    2. Change the type of audio titles
    3. Change of shift keys and the music stops
    4. Ability to include random order switching, and thus you will never join the
      same audio recording double
  5. Ability to switch the player controls on the keyboard will save you from
    typing commands.
  6. As an administrator to create, delete, add, edit catalogs of music directly
    from the admin panel in the game
  7. All actions are carried out of the game, forget about opening the folder and
    change files.
  8. "Protection of Fools" to spoil the script does not give any administrator or
    user.
Small features:
  1. If you delete the directory created by a backup
  2. Ability to enable / disable checking for ANSI will not ask the name of the
    music, consisting of Cyrillic characters
  3. Permanent protection against overwriting the database gathering settings and
    music player by changing its nickname.
  4. All labels, dialog-id, text, setting the script written in define that
    allows you to easily change the script
  5. A lot of the dialog branches, which is convenient to move around easier to
    work and save time.

Video:
[ame]http://www.youtube.com/watch?v=wNa3jMzHZwI[/ame]

To call a player window, type /mp3 or /music
To access the admin panel, type /settingm or /setm after entering the rcon

Credits:

MX_INI - by MX_MASTER

Are the settings:


Limits on the standard (can change):
PHP код:
#define MAX_MUSIC 20 // maximum for each music player
#define MAX_CATALOG_MUSIC 20 // Maximum of music in the same catalogs
#define MAX_CATALOGS 10 // Maximum supported catalogs 
Database



Screenshots:
/imageshack/img39/4747/samp975.png
/imageshack/img850/8545/samp976.png
/imageshack/img850/3078/samp977s.png
/imageshack/img220/4396/samp978.png
/imageshack/img442/1063/samp980.png
/imageshack/img513/7002/samp981.png
/imageshack/img513/7181/samp982w.png
/imageshack/img13/9291/samp983.png
/imageshack/img837/2377/samp984l.png

This version is the official one. Evaluate the work, I think you'll like.
Author: BRICS

Version 0.1 Download:
Mediafire
DropBox

================================================== =======================

Music Player version 0.2:

Everything is almost the same as the previous version. In this version have been fixed a few bugs, added elements in the menu, added auto-switching music on its end and beautiful, I believe, the window of a music player.



Information about the work:

Duration of the audio is recognized when adding music to the player, when you add music in the catalog, if you change url music player, if you change url music directory.
The efficiency of the script has not been tested on linux
Use plug SysControl by jhonyxakep
Library is used bass.dll

Music to the database now has the following form:

Quote:

Musicid = MusicUrl%SEPERATOR%MusicName%SEPERATOR%MusicDurati on in ms

Example:
Quote:

Music2 = [Link]|Slipknot - Wait and Bleed|147

How to install the plugin System Control:
Quote:

Installation:

Windows:
Put the files from the plugins in the plugins folder on the server.

bass.dll file should be placed in the root directory of the server (the ones where the samp-server.exe), or the windows system directory


Linux:
File libbass.so should be put in the folder / lib /, / usr / lib /, / usr / local / lib /.

Add the plug-in in plugins section in SA: MP config.

Include SystemControl.inc to your script.

Download version 0.2: DropBox


Re: Music Player - BRICS - 22.02.2012

145 views and 0 comments. Why?


Re: Music Player - niels44 - 22.02.2012

WOOT EPIC man NICE job this was just what i was looking for thnx gonna use this REP+


Re: Music Player - Champ - 22.02.2012

Wow !! REally Nice


Re: Music Player - sniperwars - 22.02.2012

Wow man, this is really nice.


Re: Music Player - JM_Millers - 22.02.2012

Чувак им реально нравиться)))
Хахаха!
Они что-нибудь поймут?

Ой, забыл у них же translate.******.com

Скрипт огонь!


Re: Music Player - BRICS - 22.02.2012

Все тексты скрипта, все комментарии к коду переведены на английский. Перевод не идеален, но сама суть понятна.


Re: Music Player - KingHual - 22.02.2012

English section. Go to the russian section if you want to speak in russian.


Re: Music Player - JM_Millers - 22.02.2012

Okay man!


Re: Music Player - -CaRRoT - 22.02.2012

Good Job man - Epic , Waiting for more releases from you


Re: Music Player - JM_Millers - 23.02.2012

Надо бы повыше)


Re: Music Player - [Saint] - 23.02.2012

nice job for 1st release


Re: Music Player - BRICS - 24.02.2012

Up!!


Re: Music Player - Android0504 - 24.02.2012

Hello

I just downloaded it and put all in correct place,then I type /mp3 or /music and it shows dialog box .but when I click on Add New Music or something like that after I click on Add New Music it dont appear nothing.

Help?


Re: Music Player - PawnFox - 24.02.2012

Awesome release, good job


Re: Music Player - BRICS - 24.02.2012

Quote:
Originally Posted by Android0504
Посмотреть сообщение
Hello

I just downloaded it and put all in correct place,then I type /mp3 or /music and it shows dialog box .but when I click on Add New Music or something like that after I click on Add New Music it dont appear nothing.

Help?
You use linux?


Re: Music Player - Android0504 - 24.02.2012

No,I use Windows 7


Re: Music Player - BRICS - 24.02.2012

Try changing the value
PHP код:
#define GENERAL_DIALOG 



Re: Music Player - Android0504 - 24.02.2012

Quote:
Originally Posted by BRICS
Посмотреть сообщение
Try changing the value
PHP код:
#define GENERAL_DIALOG 
When I put that in I have error (cannot read from file mxINI)


Re: Music Player - BRICS - 26.02.2012

I put mxINI in folder "Pawno" in the archive.
I hope you understand what I wrote