[FilterScript] Gplaylist
#1

GPlaylist

This is my new customizable music playlist! You can edit songs and add your own to it! It's very simple so It's not hard to edit. (but please leave the credits in there.)

What is it?
This is a highly customizable music player which uses the ever so popular "zcmd" (Thanks to zeex)

How does it work?
There are only two commands /musiclist and /credits, the rest is all operated by dialog boxes! (Makes everything more user friendly!

Code:

pawn Код:
#include <a_samp>
#include <zcmd>

#define FILTERSCRIPT

#define COLOR_GREEN 0x33AA33AA
#define listmenu 8180
#define list1 8182
#define list2 8183
#define list3 8184


public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Music Playlist FS By xXitsgodzillaXx");
    print("--------------------------------------\n");
    return 1;
}

    CMD:credits(playerid, params[])
{
    SendClientMessage(playerid, COLOR_GREEN, "Credits goto: xXitsgodzillaXx: code! Zeex: Zcmd");
    return 1;
}

    CMD:musiclist(playerid, params[])
{
    ShowPlayerDialog(playerid, listmenu, DIALOG_STYLE_LIST, "Music", "List 1\nList 2\nList 3", "Select", "Back");
    return 1;
}
   
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == listmenu)
    {
        if(response)
        {
            if(listitem == 0)
            {
                ShowPlayerDialog(playerid, list1, DIALOG_STYLE_LIST, "Music", "Stop Music\nHighway to hell - ACDC\nTNT - ACDC\nBack In Black - ACDC\nHells Bells - ACDC\nShe Shook me all night long - ACDC\nSomeone like you - Adele\nColt .45 - AfroMan\nFantasy - AldoNova\nToo Close - Alex Clare\nSmooth Criminal - Alien Ant Farm\nSail - Awolnation\nFight for your right - Beastie Boys\nIntergalactic - Beastie Boys\nDay Tripper - The Beatles\nCome Together - The Beatles\nBack", "Select", "Back");
            }
            if(listitem == 1)
            {
                ShowPlayerDialog(playerid, list2, DIALOG_STYLE_LIST, "Music", "Stop Music\nYellow Submarine - The Beatles\nLucy in the sky with diamons - The Beatles\nOrdinary - The Buzzhorn\nWet The Bed - Chris Brown\nJar of hearts - Christina Perri\nViva La Vida - Coldplay\nGangstas Paradise - Coolio\nZombie - The Cranberries\nWhat if - Creed\nAre you ready - Creed\nHigher - Creed\nMy Own Prison - Creed\nWith arms wide open - Creed\nMother - Danzig\nThunder Horse - DethKlok\nBack", "Select", "Back");
            }
            if(listitem == 2)
            {
                ShowPlayerDialog(playerid, list3, DIALOG_STYLE_LIST, "Music", "Stop Music\nRainbow in the dark - Dio\nIndestructable - Disturbed\nThe Game - Disturbed\nDown With the Sickness - Disturbed\nInside the fire - Disturbed\nEazy-er Said Than Dunn - Easy E\nEveryone is Someone in LA - Felix Da Housecat\nPumped Up Kicks - Foster the people\nVooDoo - Godsmack\nLove Hate Sex Pain - Godsmack\nUnsung - Helmet\nFever for tha Flava - Hot action cop\nIt was a good day - Ice Cube\nBack", "Select", "Back");
            }
        }
    }

    if(dialogid == list1)
    {
        if(response)
        {
            if(listitem == 0)
            {
                StopAudioStreamForPlayer(playerid);
            }
            if(listitem == 1)
            {
                PlayAudioStreamForPlayer(playerid, "http://the-inter.net/www/dlinden/ACDC%20-%20Highway%20To%20Hell.mp3");//highway to hell
            }
            if(listitem == 2)
            {
                PlayAudioStreamForPlayer(playerid, "http://users1.ml.mindenkilapja.hu/users/dalfordito/uploads/ACDC-TNT.mp3");//tnt
            }
            if(listitem == 3)
            {
                PlayAudioStreamForPlayer(playerid, "http://noblekingminoratom2005.ourhockey.net/Music/ACDC%20-%20Back%20In%20Black.mp3");//back in black
            }
            if(listitem == 4)
            {
                PlayAudioStreamForPlayer(playerid, "http://mytracklist.com/dl3213.mp3");//hells bells
            }
            if(listitem == 5)
            {
                PlayAudioStreamForPlayer(playerid, "http://www.toroscope.com/1980/youshookmeallnightlong.mp3");//she shook me all night long
            }
            if(listitem == 6)
            {
                PlayAudioStreamForPlayer(playerid, "http://imedia.imuzik.com.vn/Resources/Data/Users/yanagi/MP3/20092011-092cfd1a-ce42-46bd-ab7c-39eb49b7620b.mp3");//someone like you
            }
            if(listitem == 7)
            {
                PlayAudioStreamForPlayer(playerid, "http://bigtimebeats.com/wp-content/uploads/Colt-45.mp3");//Colt .45
            }
            if(listitem == 8)
            {
                PlayAudioStreamForPlayer(playerid, "http://www.ephemeron.net/audio/Aldo%20Nova%20-%20Fantasy.mp3");//fantasy
            }
            if(listitem == 9)
            {
                PlayAudioStreamForPlayer(playerid, "http://www.audiodrums.com/audio/2012/04/Alex%20Clare%20-%20Too%20Close.mp3");//to close
            }
            if(listitem == 10)
            {
                PlayAudioStreamForPlayer(playerid, "http://mediacloud.whirled.com/c70e8628a04e7b016990f0bac3a15ff272c29555.mp3");//smooth criminal
            }
            if(listitem == 11)
            {
                PlayAudioStreamForPlayer(playerid, "http://www.trashbags.net.au/wp-content/uploads/2010/11/irdd-awolnation-sail.mp3");//sail
            }
            if(listitem == 12)
            {
                PlayAudioStreamForPlayer(playerid, "http://www.mydadsipod.com/music/Beastie%20Boys%20-%20Fight%20For%20Your%20Right%20To%20Party.mp3");//fight for your right
            }
            if(listitem == 13)
            {
                PlayAudioStreamForPlayer(playerid, "http://biablo.blolol.com/random/beastieboys/10%20-%20Track%2010%20-%20Album.mp3");//intergalactic
            }
            if(listitem == 14)
            {
                PlayAudioStreamForPlayer(playerid, "http://skswlr.free.fr/Ma%20musique/The%20Beatles%20-%20Day%20Tripper.mp3");//day tripper
            }
            if(listitem == 15)
            {
                PlayAudioStreamForPlayer(playerid, "http://orislibertaem.free.fr/Musique/Beatles/Love/19-Come%20Together.mp3");//come together
            }
            if(listitem == 16)
            {
                ShowPlayerDialog(playerid, listmenu, DIALOG_STYLE_LIST, "Music", "List 1\nList 2\nList 3", "Select", "Back");
            }
        }
    }
   
    if(dialogid == list2)
    {
        if(response)
        {
            if(listitem == 0)
            {
                StopAudioStreamForPlayer(playerid);
            }
            if(listitem == 1)
            {
                PlayAudioStreamForPlayer(playerid, "http://xn--rsss6ihnl6s2sk.cn/trx/200709/W020070927373653918745.mp3");//yellow submarine
            }
            if(listitem == 2)
            {
                PlayAudioStreamForPlayer(playerid, "http://tylergrund.com/mp3/Beatles/Lucy%20in%20the%20Sky%20with%20Diamonds.mp3");//lucy in the sky with diamonds
            }
            if(listitem == 3)
            {
                PlayAudioStreamForPlayer(playerid, "http://fileden.com/files/2009/3/23/2375566/the_buzzhorn_-_ordinary.mp3");//ordinary
            }
            if(listitem == 4)
            {
                PlayAudioStreamForPlayer(playerid, "http://beyourownyou.com/public/music_song/b6/b5/b501_c8f5.mp3");//wet the bed
            }
            if(listitem == 5)
            {
                PlayAudioStreamForPlayer(playerid, "http://ayamusic.org/uploads/files/1309623018_maddi-jane-jar-of-hearts-by-christina-perri.mp3");//jar of hearts
            }
            if(listitem == 6)
            {
                PlayAudioStreamForPlayer(playerid, "http://austintownhall.com/wp-content/uploads/2008/08/coldplay_vivalavida.mp3");//viva la vida
            }
            if(listitem == 7)
            {
                PlayAudioStreamForPlayer(playerid, "http://toddhpage.com/LJ/SpringPortfolio/THP_PORTFOLIO_3.mp3");//Gangstas Paradise
            }
            if(listitem == 8)
            {
                PlayAudioStreamForPlayer(playerid, "http://www.richmedia.com.hk/allmemberdata/song/1641/2239.mp3");//Zombie
            }
            if(listitem == 9)
            {
                PlayAudioStreamForPlayer(playerid, "http://district196.org/schools/evhs/Academics/Multimedia%20class/grundman/Creed_What_If.mp3");//What if
            }
            if(listitem == 10)
            {
                PlayAudioStreamForPlayer(playerid, "http://www.fileden.com/files/2008/10/23/2156622/Creed%20-%20Are%20You%20Ready.mp3");//Are you ready
            }
            if(listitem == 11)
            {
                PlayAudioStreamForPlayer(playerid, "http://district196.org/schools/evhs/Academics/Multimedia%20class/grundman/Creed_Higher.mp3");//Higher
            }
            if(listitem == 12)
            {
                PlayAudioStreamForPlayer(playerid, "http://jweb.taconic.net/music/creed-my_own_prison.mp3");//My Own Prison
            }
            if(listitem == 13)
            {
                PlayAudioStreamForPlayer(playerid, "http://api.ning.com/files/g90ML67v9M8I3Ozf1bGaf2rwC5WMUuk4Y9NMxdmCWtU_/CreedWithArmsWide********3");//With arms wide open
            }
            if(listitem == 14)
            {
                PlayAudioStreamForPlayer(playerid, "http://www.chunkybuck.com/Mother.mp3");//mother
            }
            if(listitem == 15)
            {
                PlayAudioStreamForPlayer(playerid, "http://www.krankamps.com/wp-content/uploads/09-Thunderhorse.mp3");//thunderhorse
            }
            if(listitem == 16)
            {
                ShowPlayerDialog(playerid, listmenu, DIALOG_STYLE_LIST, "Music", "List 1\nList 2\nList 3", "Select", "Back");
            }
        }
    }
   
    if(dialogid == list3)
    {
        if(response)
        {
            if(listitem == 0)
            {
                StopAudioStreamForPlayer(playerid);
            }
            if(listitem == 1)
            {
                PlayAudioStreamForPlayer(playerid, "http://www.greensville.net/StorageLocker/Music/_Collections/Best_of_the_80s/-%20Rainbow%20In%20The%20Dark.mp3");//rainbow in the dark
            }
            if(listitem == 2)
            {
                PlayAudioStreamForPlayer(playerid, "http://www.mjhsbnn.com/nich-studentwork/nich-studentwork/acrain/Favsing/music/song4.mp3");//indestructable
            }
            if(listitem == 3)
            {
                PlayAudioStreamForPlayer(playerid, "http://forguitar.com/midi/D_files/Disturbed/The_Game.mp3");//the game
            }
            if(listitem == 4)
            {
                PlayAudioStreamForPlayer(playerid, "http://traceysdesigns.com/music/Disturbed_%20DownWithTheSickness.mp3");//down with the sickness
            }
            if(listitem == 5)
            {
                PlayAudioStreamForPlayer(playerid, "http://mediacloud.whirled.com/10bbaa99970eec40be2e9c9b5765c3df651f27fa.mp3");//inside the fire
            }
            if(listitem == 6)
            {
                PlayAudioStreamForPlayer(playerid, "http://eatchain.com/garbage/08%20Eazy-er%20Said%20Than%20Dunn.mp3");//Eazy-er Said Than Dunn
            }
            if(listitem == 7)
            {
                PlayAudioStreamForPlayer(playerid, "http://smashkan.com/music/Felix%20Da%20Housecat%20-%20Everyone%20Is%20Someone%20In%20LA.mp3");//everyone is someone in la
            }
            if(listitem == 8)
            {
                PlayAudioStreamForPlayer(playerid, "http://www.newdust.com/audio/foster_the_people-pumped_up_kicks.mp3");//pumped up kicks
            }
            if(listitem == 9)
            {
                PlayAudioStreamForPlayer(playerid, "http://webzoom.freewebs.com/godsmackdomain/12%20Voodoo%20Godsmack%20Godsmack.wma");//voodoo
            }
            if(listitem == 10)
            {
                PlayAudioStreamForPlayer(playerid, "http://umrg.edgeboss.net/download/umrg/424-godsmack/token/_audio/godsmack_lovehatesexpain.mp3");//love hate sex pain
            }
            if(listitem == 11)
            {
                PlayAudioStreamForPlayer(playerid, "http://music.djnodj.com/audio/Helmet-Unsung.mp3");//unsung
            }
            if(listitem == 12)
            {
                PlayAudioStreamForPlayer(playerid, "http://darkpay.free.fr/mp3/Hot%20Action%20Cop%20-%20Fever%20for%20the%20flava.mp3");//fever for tha flava
            }
            if(listitem == 13)
            {
                PlayAudioStreamForPlayer(playerid, "http://austintownhall.com/wp-content/uploads/2008/12/itwasagoodday.mp3");//it was a good day
            }
            if(listitem == 14)
            {
                ShowPlayerDialog(playerid, listmenu, DIALOG_STYLE_LIST, "Music", "List 1\nList 2\nList 3", "Select", "Back");
            }
           
        }
        return 1;
    }
    return 0;
}
Reply
#2

good works!
Reply
#3

Quote:
Originally Posted by ahmad95
Посмотреть сообщение
good works!
Thank you very much!
Reply
#4

Easy.. but useful.

Nice
Reply
#5

Quote:
Originally Posted by Can4ns
Посмотреть сообщение
Easy.. but useful.

Nice
Thank you!
Reply
#6

simple and good work mate
Reply
#7

nice
Reply
#8

thanks for this
Reply
#9

Man.. It is easy what you did but on "OnDialogResponse" to the dialogue "listmenu" you could use "Strcat" or "format"
Reply
#10

Thanks Guys!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)