CMD:music(playerid, params[]) { new string[1058]; format(string,sizeof(string), "%sKeremcem-Yasiyorum Hala\n", string); format(string,sizeof(string), "%sBstreet-Goodlife\n", string); format(string,sizeof(string), "%sThomas-Little Wonders\n", string); format(string,sizeof(string), "%sMylife\n", string); format(string,sizeof(string), "%s{FFFFFF}LetitRock\n", string); format(string,sizeof(string), "%s1Direction-Four Five Seconds\n", string); format(string,sizeof(string), "%s1D-Perfect\n", string); format(string,sizeof(string), "%sNameOfLove\n", string); format(string,sizeof(string), "%sAdelle-Hello\n", string); format(string,sizeof(string), "%sElsa7eb-elfager\n", string); format(string,sizeof(string), "%sMafe4-sa7eb-beytsa7eb\n", string); format(string,sizeof(string), "%sCranberries - Ode To My Family\n", string); format(string,sizeof(string), "%sFloRida-MyHouse\n", string); format(string,sizeof(string), "%sKeremcem - Son Bir Kez\n", string); format(string,sizeof(string), "%sKeremcem-Berbat\n", string); format(string,sizeof(string), "%sCranberries-Zombie\n", string); format(string,sizeof(string), "%sKeremcem-Kьstьm Hayata indir\n", string); format(string,sizeof(string), "%sZaynMalik-PillowTalk\n", string); format(string,sizeof(string), "%s1D-StoryOfMyLife\n", string); format(string,sizeof(string), "%sTreat You Better\n", string); format(string,sizeof(string), "%sStoppa musica", string); ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "{FFFF00}MP3 Player By victor",string,"Ok","Exit"); return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(response) { switch(dialogid) { case 1: { switch(listitem) { case 0: { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://mobilmp3.net/files/Turk%20Pop/Keremcem/Keremcem_-_Yasiyorum_Hala_-_MobilMp3.Net.mp3"); // Keremcem-Yasiyorum Hala } case 1: { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://xsfserver.com/music/GoodLife.mp3"); //Black street-Goodlife } case 2: { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://www.piecykdesigns.com/transfer/myspace/mp3play/musik/Rob%20Thomas%20-%20Little%20Wonders%20(Radio%20Edit).mp3"); //Thomas-Little Wonders } case 3: { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://xsfserver.com/music/MyLife.mp3"); //Mylife } case 4: { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://xsfserver.com/music/LetItRock.mp3"); //let it rock } case 5: { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://dopetune.com/mp3/datas//One_Direction-Four_Five_Seconds_(Rihanna_Cover)-_dopetune_com_533.mp3"); //1Direction-Four Five Seconds } case 6: { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://dl.novinmusic.com/Music/Foreign/2015/10/16/One%20Direction%20-%20Perfect%20(128).mp3"); //1Direction-Perfect } case 7: { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://s2.server-dl.asia/ali/music/farv/Martin%20Garrix%20Ft.%20Bebe%20Rexha%20-%20Name%20of%20Love%28320%29.mp3"); //Martin Garrix-name of love } case 8: { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://play.songsmp3.link/Singles/Hello%20(Adele).mp3"); //Adelle-Hello } case 9: { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://s4.3lbh.com/s/GywILYVkDR3xUZOCDQw1lOWth.mp3"); //Elsa7eb-elfager } case 10: { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://s4.3lbh.com/s/eiNQh0Ulx2MLMEHAf0SDwpgyL.mp3"); //Mafe4-sa7eb-beytsa7eb } case 11: { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://hcmaslov.d-real.sci-nnov.ru/public/mp3/Cranberries/Cranberries%20'Ode%20To%20My%20Family'.mp3"); //Cranberries - Ode To My Family } case 12: { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://song.9xbeast.com/320/My%20House%20-%20Flo%20Rida%20(320kbps).mp3"); //florida-my house } case 13: { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://cdn.mp3indirmobil.net/d/keremcem/keremcem-son-bir-kez-agustos-bocekleri.mp3"); //Keremcem - Son Bir Kez } case 14: { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://cdn.mp3indirmobil.net/d/keremcem/keremcem-berbat.mp3"); //Keremcem - Berbat } case 15: { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://kaeman.free.fr/Music/Mp3/Cranberries%20-%20Zombie.mp3"); //Cranberries-Zombie } case 16: { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://cdn.mp3indirmobil.net/mp3s/keremcem/keremcem-kustum-hayata.mp3"); //Keremcem - Kьstьm Hayata indir } case 17: { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://kobznation.com.ng/wp-content/uploads/2016/01/Zayn_Malik_-_Pillowtalk_kobznation.com.mp3"); //ZaynMalik-PillowTalk } case 18: { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://sadieraeandco.com/wp-content/uploads/2013/12/Story-of-My-Life.mp3"); //1D-StoryOfMyLife } case 19: { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://dl.tak3da.com/download/1395/03/Shawn%20Mendes%20-%20Treat%20You%20Better%20[320].mp3"); //Treat You Better } case 20: { StopAudioStreamForPlayer(playerid); } } } } } return 1; }
new MusicList[][] = { {"Song 1", "URL"}, {"Song 2", "URL"}, etc... } CMD:music(playerid, params[]) { new string[1058]; for(new i; i != sizeof(MusicList); i++) { format(string, sizeof string, "%s%s\n", MusicList[i][0]); } ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "{FFFF00}MP3 Player By victor",string,"Ok","Exit"); return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(response) { switch(dialogid) { case 1: { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, MusicInfo[listitem][1]); } } } return 1; }
#define DIALOG_MUSIC 1 //At Top of script
enum SongsList
{
SongName[256],
SongUrl[2058]
}
new MusicList[][SongsList] =
{
//Song Name //Song URL
{"Keremcem-Yasiyorum Hala", "http://mobilmp3.net/files/Turk%20Pop/Keremcem/Keremcem_-_Yasiyorum_Hala_-_MobilMp3.Net.mp3"},
{"Bstreet-Goodlife", "http://xsfserver.com/music/GoodLife.mp3"},
{"Thomas-Little Wonders", "http://www.piecykdesigns.com/transfer/myspace/mp3play/musik/Rob%20Thomas%20-%20Little%20Wonders%20(Radio%20Edit).mp3"},
{"Mylife", "http://xsfserver.com/music/MyLife.mp3"},
{"LetitRock", "http://xsfserver.com/music/LetItRock.mp3"},
{"1Direction-Four Five Seconds", "http://dopetune.com/mp3/datas//One_Direction-Four_Five_Seconds_(Rihanna_Cover)-_dopetune_com_533.mp3"},
{"1D-Perfect", "http://dl.novinmusic.com/Music/Foreign/2015/10/16/One%20Direction%20-%20Perfect%20(128).mp3"},
{"NameOfLove", "http://s2.server-dl.asia/ali/music/farv/Martin%20Garrix%20Ft.%20Bebe%20Rexha%20-%20Name%20of%20Love%28320%29.mp3"},
{"Adelle-Hello", "http://play.songsmp3.link/Singles/Hello%20(Adele).mp3"},
{"Elsa7eb-elfager", "http://s4.3lbh.com/s/GywILYVkDR3xUZOCDQw1lOWth.mp3"},
{"Mafe4-sa7eb-beytsa7eb", "http://s4.3lbh.com/s/eiNQh0Ulx2MLMEHAf0SDwpgyL.mp3"},
{"Cranberries - Ode To My Family", "http://hcmaslov.d-real.sci-nnov.ru/public/mp3/Cranberries/Cranberries%20'Ode%20To%20My%20Family'.mp3"},
{"FloRida-MyHouse", "http://song.9xbeast.com/320/My%20House%20-%20Flo%20Rida%20(320kbps).mp3"},
{"Keremcem - Son Bir Kez", "http://cdn.mp3indirmobil.net/d/keremcem/keremcem-son-bir-kez-agustos-bocekleri.mp3"},
{"Keremcem-Berbat", "http://cdn.mp3indirmobil.net/d/keremcem/keremcem-berbat.mp3"},
{"Cranberries-Zombie", "http://kaeman.free.fr/Music/Mp3/Cranberries%20-%20Zombie.mp3"},
{"Keremcem-Kьstьm Hayata indir", "http://cdn.mp3indirmobil.net/mp3s/keremcem/keremcem-kustum-hayata.mp3"},
{"ZaynMalik-PillowTalk", "http://kobznation.com.ng/wp-content/uploads/2016/01/Zayn_Malik_-_Pillowtalk_kobznation.com.mp3"},
{"1D-StoryOfMyLife", "http://sadieraeandco.com/wp-content/uploads/2013/12/Story-of-My-Life.mp3"},
{"Treat You Better", "http://dl.tak3da.com/download/1395/03/Shawn%20Mendes%20-%20Treat%20You%20Better%20[320].mp3"},
{"Stoppa musica", "Stopped"}
//Add more
};
CMD:music(playerid, params[])
{
new string[1058];
for(new i=0; i< sizeof(MusicList); i++)
{
format(string, sizeof string, "%s%s\n", string, MusicList[i][SongName]);
}
ShowPlayerDialog(playerid, DIALOG_MUSIC, DIALOG_STYLE_LIST, "{FFFF00}MP3 Player By victor",string,"Ok","Exit");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_MUSIC)
{
if(response)
{
StopAudioStreamForPlayer(playerid);
PlayAudioStreamForPlayer(playerid, MusicList[listitem][SongUrl]);
}
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case 1:
{
switch(listitem)
{
case 0:
{
StopAudioStreamForPlayer(playerid);
PlayAudioStreamForPlayer(playerid, "http://mobilmp3.net/files/Turk%20Pop/Keremcem/Keremcem_-_Yasiyorum_Hala_-_MobilMp3.Net.mp3"); // Keremcem-Yasiyorum Hala
}
case 1:
{
StopAudioStreamForPlayer(playerid);
PlayAudioStreamForPlayer(playerid, "http://xsfserver.com/music/GoodLife.mp3"); //Black street-Goodlife
}
case 2:
{
StopAudioStreamForPlayer(playerid);
PlayAudioStreamForPlayer(playerid, "http://www.piecykdesigns.com/transfer/myspace/mp3play/musik/Rob%20Thomas%20-%20Little%20Wonders%20(Radio%20Edit).mp3"); //Thomas-Little Wonders
}
case 3:
{
StopAudioStreamForPlayer(playerid);
PlayAudioStreamForPlayer(playerid, "http://xsfserver.com/music/MyLife.mp3"); //Mylife
}
case 4:
{
StopAudioStreamForPlayer(playerid);
PlayAudioStreamForPlayer(playerid, "http://xsfserver.com/music/LetItRock.mp3"); //let it rock
}
case 5:
{
StopAudioStreamForPlayer(playerid);
PlayAudioStreamForPlayer(playerid, "http://dopetune.com/mp3/datas//One_Direction-Four_Five_Seconds_(Rihanna_Cover)-_dopetune_com_533.mp3"); //1Direction-Four Five Seconds
}
case 6:
{
StopAudioStreamForPlayer(playerid);
PlayAudioStreamForPlayer(playerid, "http://dl.novinmusic.com/Music/Foreign/2015/10/16/One%20Direction%20-%20Perfect%20(128).mp3"); //1Direction-Perfect
}
case 7:
{
StopAudioStreamForPlayer(playerid);
PlayAudioStreamForPlayer(playerid, "http://s2.server-dl.asia/ali/music/farv/Martin%20Garrix%20Ft.%20Bebe%20Rexha%20-%20Name%20of%20Love%28320%29.mp3"); //Martin Garrix-name of love
}
case 8:
{
StopAudioStreamForPlayer(playerid);
PlayAudioStreamForPlayer(playerid, "http://play.songsmp3.link/Singles/Hello%20(Adele).mp3"); //Adelle-Hello
}
case 9:
{
StopAudioStreamForPlayer(playerid);
PlayAudioStreamForPlayer(playerid, "http://s4.3lbh.com/s/GywILYVkDR3xUZOCDQw1lOWth.mp3"); //Elsa7eb-elfager
}
case 10:
{
StopAudioStreamForPlayer(playerid);
PlayAudioStreamForPlayer(playerid, "http://s4.3lbh.com/s/eiNQh0Ulx2MLMEHAf0SDwpgyL.mp3"); //Mafe4-sa7eb-beytsa7eb
}
case 11:
{
StopAudioStreamForPlayer(playerid);
PlayAudioStreamForPlayer(playerid, "http://hcmaslov.d-real.sci-nnov.ru/public/mp3/Cranberries/Cranberries%20'Ode%20To%20My%20Family'.mp3"); //Cranberries - Ode To My Family
}
case 12:
{
StopAudioStreamForPlayer(playerid);
PlayAudioStreamForPlayer(playerid, "http://song.9xbeast.com/320/My%20House%20-%20Flo%20Rida%20(320kbps).mp3"); //florida-my house
}
case 13:
{
StopAudioStreamForPlayer(playerid);
PlayAudioStreamForPlayer(playerid, "http://cdn.mp3indirmobil.net/d/keremcem/keremcem-son-bir-kez-agustos-bocekleri.mp3"); //Keremcem - Son Bir Kez
}
case 14:
{
StopAudioStreamForPlayer(playerid);
PlayAudioStreamForPlayer(playerid, "http://cdn.mp3indirmobil.net/d/keremcem/keremcem-berbat.mp3"); //Keremcem - Berbat
}
case 15:
{
StopAudioStreamForPlayer(playerid);
PlayAudioStreamForPlayer(playerid, "http://kaeman.free.fr/Music/Mp3/Cranberries%20-%20Zombie.mp3"); //Cranberries-Zombie
}
case 16:
{
StopAudioStreamForPlayer(playerid);
PlayAudioStreamForPlayer(playerid, "http://cdn.mp3indirmobil.net/mp3s/keremcem/keremcem-kustum-hayata.mp3"); //Keremcem - Kьstьm Hayata indir
}
case 17:
{
StopAudioStreamForPlayer(playerid);
PlayAudioStreamForPlayer(playerid, "http://kobznation.com.ng/wp-content/uploads/2016/01/Zayn_Malik_-_Pillowtalk_kobznation.com.mp3"); //ZaynMalik-PillowTalk
}
case 18:
{
StopAudioStreamForPlayer(playerid);
PlayAudioStreamForPlayer(playerid, "http://sadieraeandco.com/wp-content/uploads/2013/12/Story-of-My-Life.mp3"); //1D-StoryOfMyLife
}
case 19:
{
StopAudioStreamForPlayer(playerid);
PlayAudioStreamForPlayer(playerid, "http://dl.tak3da.com/download/1395/03/Shawn%20Mendes%20-%20Treat%20You%20Better%20[320].mp3"); //Treat You Better
}
case 20:
{
StopAudioStreamForPlayer(playerid);
}
}
}
}
return 1;
}
You must copy same to same as mine i have tested and its working perfect for me do not edit anything.
And check your radio system is enabled or not if your radio sound is not enabled then you can't hear any audio stream. |