Mark90

Plugin-Free Radio System by Xtreme_playa[powered by zcmd]

Jan 30th, 2012
866
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 8.88 KB | None | 0 0
  1. //Radio System v1.5 Created by Xtreme_playa for 0.3d and above//
  2. //Please don't remove the Credits.. Thanks for using my FS.
  3. //--------------------------[UPDATED 24.03.2012]------------------------------//
  4.  
  5.  
  6. #include <a_samp>
  7.  
  8. #include <zcmd>
  9.  
  10. #define RADIO 3000
  11.  
  12. public OnFilterScriptInit()
  13. {
  14.     print(" ..::: Plugin Free Radio System v1.5 by Xtreme_playa :::..");
  15.     return 1;
  16. }
  17.  
  18. CMD:r(playerid, params[])
  19. {
  20.    ShowPlayerDialog(playerid,RADIO,DIALOG_STYLE_LIST,"Radio Stations","Jazz\nRock\nR&B\nCinemix\nReggae141\nInfowars\nGangsta Rap\nElectronic\nHip Hop\nXtreme Metal\nMetal\nDancepunk\nTrance\nUG Rap\nUrban\nAdult Comedy\nLatin\nHardcore Metal\nCountry\nMisc\n80's Gold\nFolk\nTop 40\nBritpop\nFunk\nSoul\nWoowop\nEnergy98\nTeenpop\nNew Age\nSTOP RADIO","Select","Exit");
  21.    return 1;
  22. }
  23.  
  24. CMD:stopr(playerid, params[])
  25. {
  26.    StopAudioStreamForPlayer(playerid);
  27.    GameTextForPlayer(playerid,"RADIO ~r~STOPPED!",2500,3);
  28.    return 1;
  29. }
  30.  
  31. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  32. {
  33.     if(dialogid == RADIO)
  34.     {
  35.         if(response)
  36.         {
  37.             if(listitem == 0)// (0-Jazz Radio)
  38.             {
  39.               PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=674096");
  40.               GameTextForPlayer(playerid, "Playing JAZZ RADIO...",2500,3);
  41.             }
  42.             if(listitem == 1)// (1-.977(Rock))
  43.             {
  44.               PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1280356");
  45.               GameTextForPlayer(playerid, "Playing 977FM...",2500,3);
  46.             }
  47.             if(listitem == 2)// (2-181FM(R&B)
  48.             {
  49.               PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=83968");
  50.               GameTextForPlayer(playerid, "Playing 181FM...",2500,3);
  51.             }
  52.             if(listitem == 3)// (3-Cinemix(CLassical))
  53.             {
  54.               PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=614375");
  55.               GameTextForPlayer(playerid, "Playing CINEMIX...",2500,3);
  56.             }
  57.             if(listitem == 4)// (4-Reggae141)
  58.             {
  59.               PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1280855");
  60.               GameTextForPlayer(playerid, "Playing REGGAE141...",2500,3);
  61.             }
  62.             if(listitem == 5)// (5-Infowars(Real talk))
  63.             {
  64.               PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1026951");
  65.               GameTextForPlayer(playerid, "Playing INFOWARS...",2500,3);
  66.             }
  67.             if(listitem == 6)// (6-Gangsta Rap)
  68.             {
  69.               PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=13309");
  70.               GameTextForPlayer(playerid, "Playing GANGSTA RAP...",2500,3);
  71.             }
  72.             if(listitem == 7)// (7-Electronic)
  73.             {
  74.               PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1377200");
  75.               GameTextForPlayer(playerid, "Playing ELECTRONIC...",2500,3);
  76.             }
  77.             if(listitem == 8)// (8-HotJamz(Hip Hop))
  78.             {
  79.               PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1281016");
  80.               GameTextForPlayer(playerid, "Playing HOT JAMZ...",2500,3);
  81.             }
  82.             if(listitem == 9)// (9-Xtreme(Metal))
  83.             {
  84.               PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1275071");
  85.               GameTextForPlayer(playerid, "Playing XTREME-METAL...",2500,3);
  86.             }
  87.             if(listitem == 10)// (10-Metal)
  88.             {
  89.               PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1280610");
  90.               GameTextForPlayer(playerid, "Playing METAL...",2500,3);
  91.             }
  92.             if(listitem == 11)// (11-Dancepunk)
  93.             {
  94.               PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1267576");
  95.               GameTextForPlayer(playerid, "Playing DANCEPUNK...",2500,3);
  96.             }
  97.             if(listitem == 12)// (12-Trance)
  98.             {
  99.               PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1193516");
  100.               GameTextForPlayer(playerid, "Playing TRANCE...",2500,3);
  101.             }
  102.             if(listitem == 13)// (13- UG Rap)
  103.             {
  104.               PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=9054");
  105.               GameTextForPlayer(playerid, "Playing UG RAP...",2500,3);
  106.             }
  107.             if(listitem == 14)// (14-Urban)
  108.             {
  109.               PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=2897571");
  110.               GameTextForPlayer(playerid, "Playing URBAN...",2500,3);
  111.             }
  112.             if(listitem == 15)// (15-Adult Comedy)
  113.             {
  114.               PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=52807");
  115.               GameTextForPlayer(playerid, "Playing ADULT COMEDY...",2500,3);
  116.             }
  117.             if(listitem == 16)// (16-Latin)
  118.             {
  119.               PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=56349");
  120.               GameTextForPlayer(playerid, "Playing LATIN...",2500,3);
  121.             }
  122.             if(listitem == 17)// (17-Hardcore)
  123.             {
  124.               PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1377376");
  125.               GameTextForPlayer(playerid, "Playing HARDCORE METAL...",2500,3);
  126.             }
  127.             if(listitem == 18)// (18-Country)
  128.             {
  129.               PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=2235429");
  130.               GameTextForPlayer(playerid, "Playing COUNTRY...",2500,3);
  131.             }
  132.             if(listitem == 19)// (19-Misc)
  133.             {
  134.               PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=130231");
  135.               GameTextForPlayer(playerid, "Playing MISC...",2500,3);
  136.             }
  137.             if(listitem == 20)// (20-80's GOLD)
  138.             {
  139.               PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=737152");
  140.               GameTextForPlayer(playerid, "Playing 80'S GOLD...",2500,3);
  141.             }
  142.             if(listitem == 21)// (21-Folk)
  143.             {
  144.               PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=251809");
  145.               GameTextForPlayer(playerid, "Playing FOLK...",2500,3);
  146.             }
  147.             if(listitem == 22)// (22-Top 40)
  148.             {
  149.               PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=663859");
  150.               GameTextForPlayer(playerid, "Playing TOP 40...",2500,3);
  151.             }
  152.             if(listitem == 23)// (23-Britpop)
  153.             {
  154.               PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=2221214");
  155.               GameTextForPlayer(playerid, "Playing Britpop...",2500,3);
  156.             }
  157.             if(listitem == 24)// (24-Funk)
  158.             {
  159.               PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1269641");
  160.               GameTextForPlayer(playerid, "Playing FUNK...",2500,3);
  161.             }
  162.             if(listitem == 25)// (25-Soul)
  163.             {
  164.               PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=185293");
  165.               GameTextForPlayer(playerid, "Playing Soul...",2500,3);
  166.             }
  167.             if(listitem == 26)// (26-Woowop)
  168.             {
  169.               PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=727560");
  170.               GameTextForPlayer(playerid, "Playing Woowop...",2500,3);
  171.             }
  172.             if(listitem == 27)// (27-Energy98)
  173.             {
  174.               PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=221706");
  175.               GameTextForPlayer(playerid, "Playing Energy98...",2500,3);
  176.             }
  177.             if(listitem == 28)// (28-Teenpop)
  178.             {
  179.               PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=255961");
  180.               GameTextForPlayer(playerid, "Playing Teenpop...",2500,3);
  181.             }
  182.             if(listitem == 29)// (29-New Age)
  183.             {
  184.               PlayAudioStreamForPlayer(playerid, "http://173.193.202.125:15236/listen.mp3?authn5d554f84ea9b43d0eca5f44ff9a3ab1a");
  185.               GameTextForPlayer(playerid, "Playing New Age...",2500,3);
  186.             }
  187.             if(listitem == 30)// (STOP RADIO)
  188.             {
  189.               StopAudioStreamForPlayer(playerid);
  190.               GameTextForPlayer(playerid, "RADIO ~r~STOPPED !",2500,3);
  191.             }
  192.         }
  193.         return 1;
  194.     }
  195.     return 0;
  196. }
  197.  
  198. public OnFilterScriptExit()
  199. {
  200.     print(" ..::: Plugin Free Radio System v1.5 by Xtreme_playa Unloaded :::..");
  201.     return 1;
  202. }
  203.  
  204. //==============================================================================
  205. //====================================EOF=======================================
  206. //==============================================================================
Advertisement
Add Comment
Please, Sign In to add comment