LeXuZ_

Music

Oct 22nd, 2014
328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 5.35 KB | None | 0 0
  1. // Designed by Jakwob and LeXuZ for Race Central
  2. #define FILTERSCRIPT
  3. #include <a_samp>
  4. #include <zcmd>
  5.  
  6. #define PCMD CMD
  7. #define lb 0x33CCFFAA
  8. #define Red 0xFF0000FF
  9. #define Yellow 0xFFFF00AA
  10.  
  11. #define DIALOG_MUSIC 2014
  12.  
  13. #define SCMToAll SendClientMessageToAll
  14. #define SCM SendClientMessage
  15.  
  16. public OnFilterScriptInit()
  17. {
  18.     return 1;
  19. }
  20.  
  21. public OnFilterScriptExit()
  22. {
  23.     return 1;
  24. }
  25.  
  26.  
  27. new musicitems[] = "1\tDubstep FM\n\
  28.                   2\tCapital FM\n\
  29.                    3\tPulse Radio\n\
  30.                    4\tRadio Klass Romania\n\
  31.                    5\tIts a Trap Radio\n\
  32.                    6\tAbsolute Radio\n\
  33.                    7\tDrumstep Musik\n\
  34.                    8\tABC Dance\n\
  35.                    9\tUnderground Radio\n\
  36.                    10\tDefJay\n\
  37.                    11\tHardmode Radio\n\
  38.                    12\t#Musik.Club Radio\n\
  39.                    13\tTurn Off\n";
  40.  
  41.  
  42. enum PlayerInfo
  43. {
  44.         RadioOn,
  45.         RadioOff,
  46. }
  47. new pInfo[MAX_PLAYERS][PlayerInfo];
  48.  
  49. public OnPlayerConnect(playerid)
  50. {
  51.     pInfo[playerid][RadioOff] = 0;
  52.     SCM(playerid, -1, "Muisc system made by LeXuZ and Jakwob, Used in Race Central");
  53.     return 1;
  54. }
  55.  
  56. public OnPlayerDisconnect(playerid, reason)
  57. {
  58.     pInfo[playerid][RadioOff] = 0;
  59.     return 1;
  60. }
  61.  
  62. CMD:music(playerid, params[])
  63. {
  64.     ShowPlayerDialog(playerid,DIALOG_MUSIC,DIALOG_STYLE_LIST,"{33CCFF}Music Stations:",musicitems,"Tune in","Close");
  65.     return 1;
  66. }
  67.  
  68. CMD:reloadmusic(playerid, params[])
  69. {
  70.     return 1;
  71. }
  72.  
  73. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  74. {
  75.     if(dialogid == DIALOG_MUSIC)
  76.     {
  77.         if(response)
  78.         {
  79.             if(listitem == 0)
  80.             {
  81.                 pInfo[playerid][RadioOff] = 1;
  82.                 PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=40568");
  83.                 SCM(playerid, Yellow, ">  {33CCFF}You are tuned into {FFFF00}Dubstep FM");
  84.             }
  85.             else if(listitem == 1)
  86.             {
  87.                 pInfo[playerid][RadioOff] = 1;
  88.                 PlayAudioStreamForPlayer(playerid, "http://media-ice.musicradio.com/CapitalMP3.m3u");
  89.                 SCM(playerid, Yellow, ">  {33CCFF}You are tuned into {FFFF00}Capital FM");
  90.             }
  91.             else if(listitem == 2)
  92.             {
  93.                 pInfo[playerid][RadioOff] = 1;
  94.                 PlayAudioStreamForPlayer(playerid, "http://icy3.abacast.com/pulse87-pulse87mp3-64");
  95.                 SCM(playerid, Yellow, ">  {33CCFF}You are tuned into {FFFF00}Pulse 87");
  96.             }
  97.             else if(listitem == 3)
  98.             {
  99.                 pInfo[playerid][RadioOff] = 1;
  100.                 PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=7581");
  101.                 SCM(playerid, Yellow, ">  {33CCFF}You are tuned into {FFFF00}Radio Klass Romania");
  102.             }
  103.             else if(listitem == 4)
  104.             {
  105.                 pInfo[playerid][RadioOff] = 1;
  106.                 PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=99183630");
  107.                 SCM(playerid, Yellow, ">  {33CCFF}You are tuned into {FFFF00}Its a Trap Radio");
  108.             }
  109.             else if(listitem == 5)
  110.             {
  111.                 pInfo[playerid][RadioOff] = 1;
  112.                 PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=933381");
  113.                 SCM(playerid, Yellow, ">  {33CCFF}You are tuned into {FFFF00}Absolute Radio");
  114.             }
  115.             else if(listitem == 6)
  116.             {
  117.                 pInfo[playerid][RadioOff] = 1;
  118.                 PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=39428");
  119.                 SCM(playerid, Yellow, ">  {33CCFF}You are tuned into {FFFF00}Drumstep Musik");
  120.             }
  121.             else if(listitem == 7)
  122.             {
  123.                 pInfo[playerid][RadioOff] = 1;
  124.                 PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=116494");
  125.                 SCM(playerid, Yellow, ">  {33CCFF}You are tuned into {FFFF00}ABC Dance");
  126.             }
  127.             else if(listitem == 8)
  128.             {
  129.                 pInfo[playerid][RadioOff] = 1;
  130.                 PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=95395");
  131.                 SCM(playerid, Yellow, ">  {33CCFF}You are tuned into {FFFF00}Underground Radio");
  132.             }
  133.             else if(listitem == 9)
  134.             {
  135.                 pInfo[playerid][RadioOff] = 1;
  136.                 PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=84158");
  137.                 SCM(playerid, Yellow, ">  {33CCFF}You are tuned into {FFFF00}DefJay");
  138.             }
  139.             else if(listitem == 10)
  140.             {
  141.                 pInfo[playerid][RadioOff] = 1;
  142.                 PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1198934");
  143.                 SCM(playerid, Yellow, ">  {33CCFF}You are tuned into {FFFF00}Hardmode Radio");
  144.             }
  145.             else if(listitem == 11)
  146.             {
  147.                 pInfo[playerid][RadioOff] = 1;
  148.                 PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=17998");
  149.                 SCM(playerid, Yellow, ">  {33CCFF}You are tuned into {FFFF00}#Musik.Club Radio");
  150.             }
  151.             else if(listitem == 12)
  152.             {
  153.                 pInfo[playerid][RadioOff] = 0;
  154.                 StopAudioStreamForPlayer(playerid);
  155.                 SCM(playerid, Yellow,">  {33CCFF}Music off");
  156.             }
  157.         }
  158.     }
  159.     return 1;
  160. }
Advertisement
Add Comment
Please, Sign In to add comment