/music
#1

[REMOVED]
Reply
#2

you got request thread bro
Reply
#3

https://sampforum.blast.hk/showthread.php?tid=413556 post it there
Reply
#4

A lot of scripts has that in their CD Player system, you could take that part out and analyze it.
Reply
#5

On top of the script:

Код:
#define DIALOG_MUSIC 999
pawn Код:
CMD:music(playerid, params[])
{
    new pDialog[1024];
    strcat(pDialog, "Music name 1\n", sizeof(pDialog));
    strcat(pDialog, "Music name 2\n", sizeof(pDialog));
    strcat(pDialog, "Music name 3\n", sizeof(pDialog));
    strcat(pDialog, "Musik name 4\n", sizeof(pDialog));
    strcat(pDialog, "Musik name 5\n", sizeof(pDialog));
    strcat(pDialog, "Musik name 6\n", sizeof(pDialog));
    strcat(pDialog, "Musik name 7\n", sizeof(pDialog));
    strcat(pDialog, "Musik name 8\n", sizeof(pDialog));
    strcat(pDialog, "Musik name 9\n", sizeof(pDialog));
    strcat(pDialog, "Musik name 10\n", sizeof(pDialog));
    strcat(pDialog, "Musik name 11\n", sizeof(pDialog));
    strcat(pDialog, "Musik name 12\n", sizeof(pDialog));
    strcat(pDialog, "Musik name 13\n", sizeof(pDialog));
    strcat(pDialog, "Musik name 14\n", sizeof(pDialog));
    strcat(pDialog, "Musik name 15\n", sizeof(pDialog));
    strcat(pDialog, "Musik name 16\n", sizeof(pDialog));
    strcat(pDialog, "Musik name 17\n", sizeof(pDialog));
    strcat(pDialog, "Musik name 18\n", sizeof(pDialog));
    strcat(pDialog, "Musik name 19'\n", sizeof(pDialog));
    strcat(pDialog, "Musik name 20\n", sizeof(pDialog));
    strcat(pDialog, "Musik name 21\n", sizeof(pDialog));
    strcat(pDialog, "Musik name 22\n", sizeof(pDialog));
    strcat(pDialog, "Musik name 23\n", sizeof(pDialog));
    strcat(pDialog, "Musik name 24\n", sizeof(pDialog));
    strcat(pDialog, "Musik name 25\n", sizeof(pDialog));
    strcat(pDialog, "Musik name 26\n", sizeof(pDialog));
    strcat(pDialog, "Musik name 27\n", sizeof(pDialog));
    strcat(pDialog, "Musik name 28\n", sizeof(pDialog));
    strcat(pDialog, "Musik name 29\n", sizeof(pDialog));
    ShowPlayerDialog(playerid, DIALOG_MUSIC, DIALOG_STYLE_LIST, "Music List", pDialog, "Select", "Cancel");
    return 1;
}

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == DIALOG_MUSIC)
    {
            if(response)
            {
    if(listitem == 0)
    {
       PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/147528710/Montana%20Server%20Music/2Pac%20-%20When%20We%20Ride%20On%20Our%20Enemies.mp3");
    }
    if(listitem == 1)
    {
       PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/147528710/Montana%20Server%20Music/Meek%20Mill%20-%20Moment%204%20Life.mp3");
    }
    if(listitem == 2)
    {
       PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/147528710/Montana%20Server%20Music/Dmx%20-%20X%20Gon%20Give%20It%20To%20Ya.mp3");
    }
    if(listitem == 3)
    {
       PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/147528710/Montana%20Server%20Music/Meek%20Mill%20ft%20Rick%20Ross%20-%20Im%20A%20Boss.mp3");
    }
    if(listitem == 4)
    {
       PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/147528710/Montana%20Server%20Music/Lights%20(Bassnectar%20Remix).mp3");
    }
    if(listitem == 5)
    {
       PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/147528710/Montana%20Server%20Music/Drake%20-%20Im%20on%20One.mp3");
    }
    if(listitem == 6)
    {
       PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/147528710/Montana%20Server%20Music/Biggie%20Smalls%20-%20Who%20Shot%20Ya.mp3");
    }
    if(listitem == 7)
    {
       PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/147528710/Montana%20Server%20Music/Mann%20Ft.%2050%20Cent%20-%20Buzzin.mp3");
    }
    if(listitem == 8)
    {
       PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/147528710/Montana%20Server%20Music/Young%20Don%20ft.%20Ratlin%20-%20Go%20Hard.mp3");
    }
    if(listitem == 9)
    {
       PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/147528710/Montana%20Server%20Music/Meek%20Mill%20-%20Ya%E2%80%99ll%20Don%E2%80%99t%20Hear%20Me.mp3");
    }
    if(listitem == 10)
    {
    PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/147528710/Montana%20Server%20Music/Birdman%20%20Ft.%20Drake%20%26%20Lil%20Wayne%20-%20Money%20To%20Blow.mp3");
    }
    if(listitem == 11)
    {
    PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/147528710/Montana%20Server%20Music/Vybz%20Kartel%20-%20Pass%20Mi%20Gun.mp3");
    }
    if(listitem == 12)
    {
    PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/147528710/Montana%20Server%20Music/Vybz%20Kartel%20-%20Real%20Badman.mp3");
    }
    if(listitem == 13)
    {
    PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/147528710/Montana%20Server%20Music/Rick%20Ross%20Ft.%20Drake%20-%20Stay%20Schemin%60%20.mp3");
    }
    if(listitem == 14)
    {
    PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/147528710/Montana%20Server%20Music/Gentleman%20-%20Love%20Chant.mp3");
    }
    if(listitem == 15)
    {
    PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/147528710/Montana%20Server%20Music/Ice%20Cube%20-%20Do%20Ya%20Thang.mp3");
    }
    if(listitem == 16)
    {
    PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/147528710/Montana%20Server%20Music/Ibrahim%20Tatl%C4%B1ses%20-%20Semmame.mp3");
    }
    if(listitem == 17)
    {
    PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/147528710/Montana%20Server%20Music/Rick%20Ross%20Ft.%20Meek%20Mill%20-%20So%20Sophisticated.mp3");
    }
    if(listitem == 18)
    {
    PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/147528710/Montana%20Server%20Music/Meek%20Mill%20-%20Flexin%20On%20Em.mp3");
    }
    if(listitem == 19)
    {
    PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/147528710/Montana%20Server%20Music/Nicki%20Minaj%20Ft.%20Drake%20-%20Moment%204%20Life.mp3");
    }
    if(listitem == 20)
    {
    PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/147528710/Montana%20Server%20Music/Vybz%20Kartel%20-%20That%20Sweet%20Yuh.mp3");
    }
    if(listitem == 21)
    {
    PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/147528710/Montana%20Server%20Music/Vybz%20Kartel%20-%20Bike%20Back.mp3");
    }
    if(listitem == 22)
    {
    PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/147528710/Montana%20Server%20Music/Vybz%20Kartel%20Ft.%20Tommy%20Lee%20-%20Betray%20Di%20Gaza%20Boss.mp3");
    }
    if(listitem == 23)
    {
    PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/147528710/Montana%20Server%20Music/Vybz%20Kartel%20-%20Life.mp3");
    }
    if(listitem == 24)
    {
    PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/147528710/Montana%20Server%20Music/Neyo%20-%20Miss%20Independent.mp3");
    }
    if(listitem == 25)
    {
    PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/147528710/Montana%20Server%20Music/Usher%20-%20Moving%20Mountains.mp3");
    }
    if(listitem == 26)
    {
    PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/147528710/Montana%20Server%20Music/Ratlin%20-%20Go%20Hard.mp3");
    }
    if(listitem == 27)
    {
    PlayAudioStreamForPlayer(playerid, "http://www.uploadmusic.org/MUSIC/1077741364425344.mp3");
    }
    if(listitem == 28)
    {
    PlayAudioStreamForPlayer(playerid, "");
    }
    return 1;
    }
 }

    return 0;
}
Replace the links with your own links.
Reply
#6

Thanks
Reply
#7

but, it's NOT working
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)