01.01.2015, 21:33
Eu Queria um Sistema de Radio Com Musicas Online !
PHP код:
Vlw
Vlw
/* Favor Nгo Retirar Os Crбditos! [FS]: WebRadios MatheusSpohr Skype: qrapapagaio Post Nє: 001 */ #include <a_samp> #define Cor 0x33CCFFAA forward SendMSG(); new RandomMSG[][] = { "{28A9FF}[Sistema De Rбdios]:{FFEA78} Quer Ouvir Uma Musica Enquanto Joga? /WebRadios", "{28A9FF}[Sistema De Rбdios]:{FFEA78} /WebRadios, Sintonize Agora, Sу As Melhores!" }; public OnFilterScriptInit() { SetTimer("SendMSG", 300000, true); print(" [FS] WebRadios Carregado "); print("WebRadios By: MatheusSpohr"); return 1; } public SendMSG() { new randMSG = random(sizeof(RandomMSG)); SendClientMessageToAll(0x00FE19FF, RandomMSG[randMSG]); } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/webradios", cmdtext, true, 10) == 0) { ShowPlayerDialog(playerid, 1245, DIALOG_STYLE_LIST, "{00FF00}Lista de Web Radios", "{0000FF}Radio S.U.\nRadio Wake Funk\nRadio Som Sertanejo\nRadio Sound Pop\nRadio Los Santos\nRadio Jovem Pan\n{00FF00}Crйditos WebRadio\n{FF0000}Desligar Radio", "OK", "Cancelar"); return 1; } return 0; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 1245){ if(response){ if(listitem == 0){ { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid,"http://67.215.15.218:8080/radiosu.mp3");//Radio S.U. SendClientMessage(playerid, Cor, "{28A9FF}[Sistema De Rбdios]:{FFEA78} Sintonizando Radio SU, Aguarde..."); } } if(listitem == 1){ { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid,"http://198.199.100.218:12710");//Radio Wake Funk SendClientMessage(playerid, Cor, "{28A9FF}[Sistema De Rбdios]:{FFEA78} Sintonizando Radio Wake Funk, Aguarde..."); } } if(listitem == 2){ { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid,"http://64.15.147.221:9026");//Radio Som Sertanejo SendClientMessage(playerid, Cor, "{28A9FF}[Sistema De Rбdios]:{FFEA78} Sintonizando Radio Som Sertanejo, Aguarde..."); } } if(listitem == 3){ { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid,"http://198.178.123.11:7746");//Radio Sound Pop SendClientMessage(playerid, Cor, "{28A9FF}[Sistema De Rбdios]:{FFEA78} Sintonizando Radio Soun Pop, Aguarde..."); } } if(listitem == 4){ { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid,"http://192.99.17.12:5832/stream");//Radio Los Santos SendClientMessage(playerid, Cor, "{28A9FF}[Sistema De Rбdios]:{FFEA78} Sintonizando Radio Los Santos, Aguarde..."); } } if(listitem == 5){ { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid,"http://107.161.114.2:8232");//Radio Jpvem Pan SendClientMessage(playerid, Cor, "{28A9FF}[Sistema De Rбdios]:{FFEA78} Sintonizando Radio Jovem Pan, Aguarde..."); } } if(listitem == 6){ { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid,"http://dc760.4shared.com/img/5367787030/ae5bfa6e/dlink__2Fdownload_2FeI-x54M-ce_3Ftsid_3D20150213-023149-5ca58a1a_26lgfp_3D10000_26sbsr_3De272099b34a33d12d8dc86d236bc220f65b95f39480263c7/preview.mp3");//Frete SendClientMessage(playerid, Cor, "{28A9FF}[Sistema De Rбdios]:"); SendClientMessage(playerid, Cor, "Feito Por: Matheus Spohr"); } } if(listitem == 7){ { StopAudioStreamForPlayer(playerid); SendClientMessage(playerid, Cor, "{28A9FF}[Sistema De Rбdios]:{FFEA78} Rбdio Desligada Com Sucesso!"); } } } else{ } } return 1; } public OnPlayerClickPlayer(playerid, clickedplayerid, source) { return 1; } /* Favor Nгo Retirar Os Crбditos! [FS]: WebRadios MatheusSpohr Skype: qrapapagaio Post Nє: 001 */
if(listitem == 0){
{
Fiz um FS aqui pra vocк, meio com pressa, nao cheguei a testar mais deve ta funcionando.
Код:
/* Favor Nгo Retirar Os Crбditos! [FS]: WebRadios MatheusSpohr Skype: qrapapagaio Post Nє: 001 */ #include <a_samp> #define Cor 0x33CCFFAA forward SendMSG(); new RandomMSG[][] = { "{28A9FF}[Sistema De Rбdios]:{FFEA78} Quer Ouvir Uma Musica Enquanto Joga? /WebRadios", "{28A9FF}[Sistema De Rбdios]:{FFEA78} /WebRadios, Sintonize Agora, Sу As Melhores!" }; public OnFilterScriptInit() { SetTimer("SendMSG", 300000, true); print(" [FS] WebRadios Carregado "); print("WebRadios By: MatheusSpohr"); return 1; } public SendMSG() { new randMSG = random(sizeof(RandomMSG)); SendClientMessageToAll(0x00FE19FF, RandomMSG[randMSG]); } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/webradios", cmdtext, true, 10) == 0) { ShowPlayerDialog(playerid, 1245, DIALOG_STYLE_LIST, "{00FF00}Lista de Web Radios", "{0000FF}Radio S.U.\nRadio Wake Funk\nRadio Som Sertanejo\nRadio Sound Pop\nRadio Los Santos\nRadio Jovem Pan\n{00FF00}Crйditos WebRadio\n{FF0000}Desligar Radio", "OK", "Cancelar"); return 1; } return 0; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 1245){ if(response){ if(listitem == 0){ { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid,"http://67.215.15.218:8080/radiosu.mp3");//Radio S.U. SendClientMessage(playerid, Cor, "{28A9FF}[Sistema De Rбdios]:{FFEA78} Sintonizando Radio SU, Aguarde..."); } } if(listitem == 1){ { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid,"http://198.199.100.218:12710");//Radio Wake Funk SendClientMessage(playerid, Cor, "{28A9FF}[Sistema De Rбdios]:{FFEA78} Sintonizando Radio Wake Funk, Aguarde..."); } } if(listitem == 2){ { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid,"http://64.15.147.221:9026");//Radio Som Sertanejo SendClientMessage(playerid, Cor, "{28A9FF}[Sistema De Rбdios]:{FFEA78} Sintonizando Radio Som Sertanejo, Aguarde..."); } } if(listitem == 3){ { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid,"http://198.178.123.11:7746");//Radio Sound Pop SendClientMessage(playerid, Cor, "{28A9FF}[Sistema De Rбdios]:{FFEA78} Sintonizando Radio Soun Pop, Aguarde..."); } } if(listitem == 4){ { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid,"http://192.99.17.12:5832/stream");//Radio Los Santos SendClientMessage(playerid, Cor, "{28A9FF}[Sistema De Rбdios]:{FFEA78} Sintonizando Radio Los Santos, Aguarde..."); } } if(listitem == 5){ { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid,"http://107.161.114.2:8232");//Radio Jpvem Pan SendClientMessage(playerid, Cor, "{28A9FF}[Sistema De Rбdios]:{FFEA78} Sintonizando Radio Jovem Pan, Aguarde..."); } } if(listitem == 6){ { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid,"http://dc760.4shared.com/img/5367787030/ae5bfa6e/dlink__2Fdownload_2FeI-x54M-ce_3Ftsid_3D20150213-023149-5ca58a1a_26lgfp_3D10000_26sbsr_3De272099b34a33d12d8dc86d236bc220f65b95f39480263c7/preview.mp3");//Frete SendClientMessage(playerid, Cor, "{28A9FF}[Sistema De Rбdios]:"); SendClientMessage(playerid, Cor, "Feito Por: Matheus Spohr"); } } if(listitem == 7){ { StopAudioStreamForPlayer(playerid); SendClientMessage(playerid, Cor, "{28A9FF}[Sistema De Rбdios]:{FFEA78} Rбdio Desligada Com Sucesso!"); } } } else{ } } return 1; } public OnPlayerClickPlayer(playerid, clickedplayerid, source) { return 1; } /* Favor Nгo Retirar Os Crбditos! [FS]: WebRadios MatheusSpohr Skype: qrapapagaio Post Nє: 001 */ Pastebin 4Shared Ajudei? +rep |