Pablo_Script

Sistema de Ouvir Radio

Jul 19th, 2012
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.99 KB | None | 0 0
  1. /*
  2. CREDITOS PABLO MANTEGA SEU SEGUNDO TRABALHO
  3. */
  4. #include <a_samp>
  5.  
  6. #define Pablete 1
  7. #define NaotiIntereça 0x33AAFFFF
  8. #define MSGPablete ShowPlayerDialog
  9. #define DialogPablete DIALOG_STYLE_LIST
  10. #define SendPablete SendClientMessage
  11. public OnFilterScriptInit()
  12. {
  13.     print("\n--------------------------------------");
  14.     print(" FS de Pablete By Pablo_Mantega  ");
  15.     print("--------------------------------------\n");
  16.  
  17.     return 1;
  18. }
  19.  
  20.  
  21. public OnPlayerCommandText(playerid, cmdtext[])
  22. {
  23.     if(strcmp("/creditosradios", cmdtext, true, 10) == 0)
  24.     {
  25.     SendPablete(playerid,-1,"Sistema Criado Por Pablo_Mantega [PabloScript], Familia Script Samp, Mais Coisas Meu MSN [email protected]");
  26.     return true;
  27.     }
  28.     if(strcmp("/Radios", cmdtext, true, 10) == 0)
  29.     {
  30.      MSGPablete(playerid, Pablete, DialogPablete, "Musicas","Radio Super Mixe\nRadio Nova Web\nRadio Eletro Vibe\nDesligar Radio","Selecionar","Sair");
  31.     }
  32.     return 1;
  33. }
  34.  
  35. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  36. {
  37.   if(dialogid == Pablete)
  38.   {
  39.     if(response)
  40.     {
  41.       if(listitem == 0)
  42.       {
  43.       PlayAudioStreamForPlayer(playerid, "http://Radiosupermix.com.br:7585");
  44.       SendClientMessage(playerid,NaotiIntereça,"| INFO Radio | Voce Esta Ouvindo Radio Super Mix.");
  45.       }
  46.       if(listitem == 1)
  47.       {
  48.       PlayAudioStreamForPlayer(playerid, "http://69.162.90.148:7080/");
  49.       SendClientMessage(playerid,NaotiIntereça,"| INFO Radio | Voce Esta Ouvindo Radio Nova Web.");
  50.       }
  51.       if(listitem == 2)
  52.       {
  53.       PlayAudioStreamForPlayer(playerid, "http://streaming15.brlogic.com:8084/live");
  54.       SendClientMessage(playerid,NaotiIntereça,"| INFO Radio | Voce Esta Ouvindo Radio Eletro Vibe");
  55.       }
  56.       else if(listitem == 3)
  57.       {
  58.       StopAudioStreamForPlayer(playerid);
  59.       SendClientMessage(playerid, NaotiIntereça,"| INFO Radio | Você Desligo a Radio");
  60.       SendClientMessage(playerid, NaotiIntereça,"Saiba Mais /creditosradios");
  61.       }
  62.       }
  63.     }
  64.   }
Advertisement
Add Comment
Please, Sign In to add comment