06.12.2016, 00:17
hello,at first i have a problem with music when i use /music in server it's show me a dialog and select music but it's not work Code:
second i have a question about object id i ant to know what's the id of that object [the red smoke]
Код:
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; }