21.04.2012, 17:35
Quero por pra quando eu escolher a mъsica tocar pra todos do servidor!
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext,"/radio",true) == 0) { ShowPlayerDialog(playerid, ListadeMusica, DIALOG_STYLE_LIST, "{E40000}Sistema de Rбdio JFS Music v1.0", "{FFFFFF}B.O.B {F900E0}Magic\n{FFFFFF}Charlie Brown {F900E0}Ela Vai Voltar\n{FFFFFF}Travis McCoy ft. Bruno Mars {F900E0}Billionarie\n{FFFFFF}David Guetta {F900E0}Getting Over You\n{FFFFFF}Train {F900E0}Hey, Soul Sister\n{FFFFFF}Bruno Mars {F900E0}The Lazy Song\n{FFFFFF}David Guerra ft. Florida {F900E0}Club Cant Handle Me\n{FFFFFF}Bonde da Stronda {F900E0}Mansгo Thug Stronda\n{FFFFFF}Black Eyed Peas {F900E0}The Time\n{FFFFFF}Parar de Tocar", "Escutar", "Cancelar"); return true; } return false; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == ListadeMusica) { if(response) { if(listitem == 0) { if(EscutandoMusica[playerid] == 1) return SendClientMessage(playerid, -1, "Vocк Jб Estб Escultando Mъsica, Desligue Ela"); EscutandoMusica[playerid] = 1; // Magic PlayAudioStreamForPlayer(playerid, "http://dc353.4shared.com/img/352812161/69b21de9/dlink__2Fdownload_2FQLj8YKEh_3Ftsid_3D20110913-175123-86141340/preview.mp3"); return true; } if(listitem == 1) { if(EscutandoMusica[playerid] == 1) return SendClientMessage(playerid, -1, "Vocк Jб Estб Escultando Mъsica, Desligue Ela"); EscutandoMusica[playerid] = 1; // Charlie Brown - Ela Vai Voltar PlayAudioStreamForPlayer(playerid, "http://dc93.4shared.com/img/78252245/5073c61e/dlink__2Fdownload_2FZ7mYk7HX_3Ftsid_3D20110913-200010-e328e31c/preview.mp3"); return true; } if(listitem == 2) { if(EscutandoMusica[playerid] == 1) return SendClientMessage(playerid, -1, "Vocк Jб Estб Escultando Mъsica, Desligue Ela"); EscutandoMusica[playerid] = 1; // Billionare PlayAudioStreamForPlayer(playerid, "http://dc250.4shared.com/img/335123204/961f8bcd/dlink__2Fdownload_2Fr7HXE28I_3Ftsid_3D20110913-175631-2861127d/preview.mp3"); return true; } if(listitem == 3) { if(EscutandoMusica[playerid] == 1) return SendClientMessage(playerid, -1, "Vocк Jб Estб Escultando Mъsica, Desligue Ela"); EscutandoMusica[playerid] = 1; // Getting Over You PlayAudioStreamForPlayer(playerid, "http://dc251.4shared.com/img/308678631/27eddab7/dlink__2Fdownload_2FEMEhSFR2_3Ftsid_3D20110913-174425-f241abe5/preview.mp3"); return true; } if(listitem == 4) { if(EscutandoMusica[playerid] == 1) return SendClientMessage(playerid, -1, "Vocк Jб Estб Escultando Mъsica, Desligue Ela"); EscutandoMusica[playerid] = 1; // Hey, Soul Sister PlayAudioStreamForPlayer(playerid, "http://dc424.4shared.com/img/746176870/4a5b610f/dlink__2Fdownload_2F1jcIn-qy_3Ftsid_3D20110913-180243-6044a397/preview.mp3"); return true; } if(listitem == 5) { if(EscutandoMusica[playerid] == 1) return SendClientMessage(playerid, -1, "Vocк Jб Estб Escultando Mъsica, Desligue Ela"); EscutandoMusica[playerid] = 1; // The Lazy PlayAudioStreamForPlayer(playerid, "http://dc219.4shared.com/img/749605517/c165f3d6/dlink__2Fdownload_2FJvaHFy98_3Ftsid_3D20110913-180147-b793cb74/preview.mp3"); return true; } if(listitem == 6) { if(EscutandoMusica[playerid] == 1) return SendClientMessage(playerid, -1, "Vocк Jб Estб Escultando Mъsica, Desligue Ela"); EscutandoMusica[playerid] = 1; // Club Cant PlayAudioStreamForPlayer(playerid, "http://dc236.4shared.com/img/336902468/d2b9b027/dlink__2Fdownload_2FRL2oeFcS_3Ftsid_3D20110913-180245-7dc5917c/preview.mp3"); return true; } if(listitem == 7) { if(EscutandoMusica[playerid] == 1) return SendClientMessage(playerid, -1, "Vocк Jб Estб Escultando Mъsica, Desligue Ela"); EscutandoMusica[playerid] = 1; SendClientMessage(playerid, -1, "Essa Mъsica Pode Demorar 20 Segundos Para Tocar. Pois й Original."); // Mansгo Thug Stronda PlayAudioStreamForPlayer(playerid, "http://dc152.4shared.com/img/125284859/2be1fc4d/dlink__2Fdownload_2Fi1kXd0e_5F_3Ftsid_3D20110913-180402-3df03ebb/preview.mp3"); return true; } if(listitem == 8) { if(EscutandoMusica[playerid] == 1) return SendClientMessage(playerid, -1, "Vocк Jб Estб Escultando Mъsica, Desligue Ela"); EscutandoMusica[playerid] = 1; // The Time PlayAudioStreamForPlayer(playerid, "http://dc260.4shared.com/img/470143579/9ff3ce06/dlink__2Fdownload_2FHb6cQBGZ_3Ftsid_3D20110913-180637-6ee36551/preview.mp3"); return true; } if(listitem == 9) { EscutandoMusica[playerid] = 0; SendClientMessage(playerid, -1, "Mъsica Desligada."); StopAudioStreamForPlayer(playerid); return true; } return true; } return true; } return true; }