Advertisement
Chip7

[FS] FilterScript RádioSystemV.1

Sep 28th, 2013
1,100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 7.58 KB | None | 0 0
  1. /*
  2.   VISITE NOSSO SITE: http://www.sampknd.com/
  3.   VISITE NOSSO FACEBOOK: http://www.facebook.com/SampKnd
  4.   SAMP KND MELHOR BLOG DE SAMP DO BRASIL
  5. */
  6.  
  7.  
  8. #include <a_samp>
  9.  
  10.  
  11. public OnPlayerCommandText(playerid, cmdtext[])
  12. {
  13.     if(strcmp("/ajudaradio", cmdtext, true, 10) == 0)
  14.     {
  15.     SendClientMessage(playerid, 0xFF001DFF, " ~~~~~~~~~~ [ Rádio - Script ] ~~~~~~~~~~ ");
  16.     SendClientMessage(playerid, 0x2CFF00FF, "• /Rádio - Para ligar á Rádio • ");
  17.     SendClientMessage(playerid, 0xFF001DFF, " ~~~~~~~~~~ [ Rádio - Script ] ~~~~~~~~~~ ");
  18.     return 1;
  19. }
  20.     if (strcmp("/radios", cmdtext, true, 10) == 0)
  21.     {
  22.         ShowPlayerDialog(playerid, 7954, DIALOG_STYLE_LIST, "Sistema de Rádios [By: ThuuGLif3]","{FFFF00}Rádio Jovem Pam\n{00FF00}Rádio Funk Brasil\n{00FA9A}Rádio Atlantida\n{FFFFFF}Rádio Total Dance\n{A2B5CD}Rádio Eletro Hits\n{FF69B4}Rádio Mandela Digital\n{FF4500}Rádio Acid Flashback\n{9370DB}Rádio Conexão Proibida\n{6495ED}Rádio Rock Music\n{00FF00}Rádio Sertanejo\n{FF1493}Rádio Urban Hip-Hop\n{FFFF00}Rádio American Country\n{7D26CD}Rádio Pagode Fm\n{EEE9E9}Desligar Rádio","Sincronizar","Fechar");
  23.         return true;
  24.     }
  25.     return false;
  26. }
  27.  
  28. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  29. {
  30.     if(dialogid == 7954)
  31.     {
  32.         if(response)
  33.         {
  34.             if(listitem == 0)
  35.             {
  36.                 PlayAudioStreamForPlayer(playerid, "http://65.60.25.242:8004/");
  37.                 SendClientMessage( playerid, 0x00FF00FF, "[ > ] Se não estiver ouvindo, verifique se o volume da rádio nas opções do jogo, tem de está correto!" );
  38.                 SendClientMessage( playerid, 0x00FF00FF, "[ > ] Rádio selecionada: {FFFF00}Rádio Jovem Pan" );
  39.                 return true;
  40.             }
  41.             if(listitem == 1)
  42.             {
  43.                 PlayAudioStreamForPlayer(playerid, "http://64.56.64.84:9908");
  44.                 SendClientMessage( playerid, 0x00FF00FF, "[ > ] Se não estiver ouvindo, verifique se o volume da rádio nas opções do jogo, tem de está correto!" );
  45.                 SendClientMessage( playerid, 0x00FF00FF, "[ > ] Rádio selecionada: {FFFF00}Rádio Funk Brasil" );
  46.                 return true;
  47.             }
  48.             if(listitem == 2)
  49.             {
  50.                 PlayAudioStreamForPlayer(playerid, "http://189.76.158.143:50002/");
  51.                 SendClientMessage( playerid, 0x00FF00FF, "[ > ] Se não estiver ouvindo, verifique se o volume da rádio nas opções do jogo, tem de está correto!" );
  52.                 SendClientMessage( playerid, 0x00FF00FF, "[ > ] Rádio selecionada: {FFFF00}Rádio Atlantida" );
  53.                 return true;
  54.             }
  55.             if(listitem == 3)
  56.             {
  57.                 PlayAudioStreamForPlayer(playerid, "http://74.222.2.146:9358/");
  58.                 SendClientMessage( playerid, 0x00FF00FF, "[ > ] Se não estiver ouvindo, verifique se o volume da rádio nas opções do jogo, tem de está correto!" );
  59.                 SendClientMessage( playerid, 0x00FF00FF, "[ > ] Rádio selecionada: {FFFF00}Rádio Total Dance" );
  60.                 return true;
  61.             }
  62.             if(listitem == 4)
  63.             {
  64.                 PlayAudioStreamForPlayer(playerid, "http://64.15.147.220:8042/");//sm
  65.                 SendClientMessage( playerid, 0x00FF00FF, "[ > ] Se não estiver ouvindo, verifique se o volume da rádio nas opções do jogo, tem de está correto!" );
  66.                 SendClientMessage( playerid, 0x00FF00FF, "[ > ] Rádio selecionada: {FFFF00}Rádio Eletro Hits" );
  67.                 return true;
  68.             }
  69.             if(listitem == 5)
  70.             {
  71.                 PlayAudioStreamForPlayer(playerid, "http://184.154.37.136:12842");//Mandela
  72.                 SendClientMessage( playerid, 0x00FF00FF, "[ > ] Se não estiver ouvindo, verifique se o volume da rádio nas opções do jogo, tem de está correto!" );
  73.                 SendClientMessage( playerid, 0x00FF00FF, "[ > ] Rádio selecionada: {FFFF00}Rádio Mandela Digital" );
  74.                 return true;
  75.             }
  76.             if(listitem == 6)
  77.             {
  78.                 PlayAudioStreamForPlayer(playerid, "http://174.122.26.34:8180");//Acids
  79.                 SendClientMessage( playerid, 0x00FF00FF, "[ > ] Se não estiver ouvindo, verifique se o volume da rádio nas opções do jogo, tem de está correto!" );
  80.                 SendClientMessage( playerid, 0x00FF00FF, "[ > ] Rádio selecionada: {FFFF00}AC/DC Radio" );
  81.                 return true;
  82.             }
  83.             if(listitem == 7)
  84.             {
  85.                 PlayAudioStreamForPlayer(playerid, "http://67.205.74.73:9354");//conexão
  86.                 SendClientMessage( playerid, 0x00FF00FF, "[ > ] Se não estiver ouvindo, verifique se o volume da rádio nas opções do jogo, tem de está correto!" );
  87.                 SendClientMessage( playerid, 0x00FF00FF, "[ > ] Rádio selecionada: {FFFF00}Rádio Conexão Proibida" );
  88.                 return true;
  89.             }
  90.             if(listitem == 8)
  91.             {
  92.                 PlayAudioStreamForPlayer(playerid, "http://174.36.51.212:8524");//rock
  93.                 SendClientMessage( playerid, 0x00FF00FF, "[ > ] Se não estiver ouvindo, verifique se o volume da rádio nas opções do jogo, tem de está correto!" );
  94.                 SendClientMessage( playerid, 0x00FF00FF, "[ > ] Rádio selecionada: {FFFF00}Rádio Rock 107" );
  95.                 return true;
  96.             }
  97.             if(listitem == 9)
  98.             {
  99.                 PlayAudioStreamForPlayer(playerid, "http://174.127.101.180:8043");//sertanejo
  100.                 SendClientMessage( playerid, 0x00FF00FF, "[ > ] Se não estiver ouvindo, verifique se o volume da rádio nas opções do jogo, tem de está correto!" );
  101.                 SendClientMessage( playerid, 0x00FF00FF, "[ > ] Rádio selecionada: {FFFF00}Rádio Sertanejo" );
  102.                 return true;
  103.             }
  104.             if(listitem == 10)
  105.             {
  106.                 PlayAudioStreamForPlayer(playerid, "http://108.61.73.119:8024");//urban hip
  107.                 SendClientMessage( playerid, 0x00FF00FF, "[ > ] Se não estiver ouvindo, verifique se o volume da rádio nas opções do jogo, tem de está correto!" );
  108.                 SendClientMessage( playerid, 0x00FF00FF, "[ > ] Rádio selecionada: {FFFF00}Rádio Urban Hip-Hop" );
  109.                 return true;
  110.             }
  111.             if(listitem == 11)
  112.             {
  113.                 PlayAudioStreamForPlayer(playerid, "http://108.61.73.120:8130");//country
  114.                 SendClientMessage( playerid, 0x00FF00FF, "[ > ] Se não estiver ouvindo, verifique se o volume da rádio nas opções do jogo, tem de está correto!" );
  115.                 SendClientMessage( playerid, 0x00FF00FF, "[ > ] Rádio selecionada: {FFFF00}Rádio American Country" );
  116.                 return true;
  117.             }
  118.             if(listitem == 12)
  119.             {
  120.                 PlayAudioStreamForPlayer(playerid, "http://199.217.115.31:9616");//pagode
  121.                 SendClientMessage( playerid, 0x00FF00FF, "[ > ] Se não estiver ouvindo, verifique se o volume da rádio nas opções do jogo, tem de está correto!" );
  122.                 SendClientMessage( playerid, 0x00FF00FF, "[ > ] Rádio selecionada: {FFFF00}Rádio Pagode FM" );
  123.                 return true;
  124.             }
  125.             if(listitem == 13)
  126.             {
  127.                 SendClientMessage(playerid, 0xFF7F50, "{FFFF00}[ > ] Você Desligou a Rádio Com Sucesso!");
  128.                 StopAudioStreamForPlayer(playerid);
  129.                 return true;
  130.             }
  131.             return true;
  132.         }
  133.         return true;
  134.     }
  135.     return true;
  136. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement