SAMProductions

[FIXED] In Game Stream (Music) Compiling Help

Nov 5th, 2013
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 4.27 KB | None | 0 0
  1. //On player/in car radio stations usable by command in a dialog
  2. //Created by BrianSherbino(2013)
  3. //v 0.1
  4.  
  5. #include <a_samp>
  6. #include <zcmd>
  7.  
  8. #pragma tabsize 0
  9. #define FILTERSCIPT
  10. #define DIALOG_RADIO 0
  11. #define DIALOG_RADIO2 1
  12. #define DIALOG_RADIO3 2
  13. #define DIALOG_RADIO4 3
  14. #define DIALOG_RADIO5 4
  15. #define COLOR_WHITE 0xFFFFFF00
  16.  
  17. CMD:radio(playerid, params[])
  18. {
  19.     ShowPlayerDialog(playerid, DIALOG_RADIO, DIALOG_STYLE_LIST, "Please pick a Music Genre:", "{C9C800}Dubstep\n{C9C800}Metal\n{C9C800}Pop\n{C9C800}Rock", "OK", "Cancel");
  20.     return 1;
  21. }
  22.  
  23.  
  24. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  25. {
  26.     if(dialogid ==  DIALOG_RADIO)
  27.     {
  28.         if(response)
  29.         {
  30.             if(listitem == 0)
  31.             {
  32.                 ShowPlayerDialog(playerid, DIALOG_RADIO2, DIALOG_STYLE_LIST, "These are the Dubstep Radio Stations:", "{C9C800}Dubstep FM\n{C9C800}Dupstep Beyond", "Play", "Cancel");
  33.             }
  34.             if(listitem == 1)
  35.             {
  36.                 ShowPlayerDialog(playerid, DIALOG_RADIO3, DIALOG_STYLE_LIST, "These are the Metal Radio Stations:", "{C9C800}Idobi Howl\n{C9C800}KNAC.COM", "Play", "Cancel");
  37.             }
  38.             if(listitem == 2)
  39.             {
  40.                 ShowPlayerDialog(playerid, DIALOG_RADIO4, DIALOG_STYLE_LIST, "These are the Pop Radio Stations:", "{C9C800}100Hitz-Top 40\n{C9C800}181.FM POP", "Play", "Cancel");
  41.             }
  42.             if(listitem == 3)
  43.             {
  44.                 ShowPlayerDialog(playerid, DIALOG_RADIO5, DIALOG_STYLE_LIST, "These are the Rock Radio Stations:", "{C9C800}181.FM ROCK\n{C9C800}181.FM 80's", "Play", "Cancel");
  45.             }
  46.         }
  47.     }
  48.     if(dialogid == DIALOG_RADIO2)
  49.     {
  50.         if(response)
  51.         {
  52.             if(listitem == 0)
  53.             {
  54.                 //Dubstep Station 1
  55.                 PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=558051", 0,0,0,1,1);
  56.                 SendClientMessage(playerid, COLOR_WHITE, "Dubstep Station: Dubstep FM will now play.");
  57.             }
  58.  
  59.             if(listitem == 1)
  60.             {
  61.                 //Dubstep Station 2
  62.                 PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=127336", 0,0,0,1,1);
  63.                 SendClientMessage(playerid, COLOR_WHITE, "Dubstep Station: Dubstep Beyond will now play.");
  64.             }
  65.         }
  66.     }
  67.     if(dialogid == DIALOG_RADIO3)
  68.     {
  69.         if(response)
  70.         {
  71.             if(listitem == 0)
  72.             {
  73.                 //Metal Station 1
  74.                 PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=15810", 0,0,0,1,1);
  75.                 SendClientMessage(playerid, COLOR_WHITE, "Metal Station: Idobi Howl will now play.");
  76.             }
  77.  
  78.             if(listitem ==1)
  79.             {
  80.                 //Metal Station 2
  81.                 PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=150273", 0,0,0,1,1);
  82.                 SendClientMessage(playerid, COLOR_WHITE, "Metal Station: KNAC.COM will now play.");
  83.             }
  84.         }
  85.     }
  86.     if(dialogid == DIALOG_RADIO4)
  87.     {
  88.         if(response)
  89.         {
  90.             if(listitem == 0)
  91.             {
  92.                 //Pop Station 1
  93.                 PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=59205", 0,0,0,1,1);
  94.                 SendClientMessage(playerid, COLOR_WHITE, "Pop Station: 100Hitz-Top 40 will now play.");
  95.             }
  96.  
  97.             if(listitem == 1)
  98.             {
  99.                 //Pop Station 2
  100.                 PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=611786", 0,0,0,1,1);
  101.                 SendClientMessage(playerid, COLOR_WHITE, "Pop Station: 181.FM POP will now play.");
  102.             }
  103.         }
  104.     }
  105.     if(dialogid == DIALOG_RADIO5)
  106.     {
  107.         if(response)
  108.         {
  109.             if(listitem == 0)
  110.             {
  111.                 //Rock Station 1
  112.                 PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=55402", 0,0,0,1,1);
  113.                 SendClientMessage(playerid, COLOR_WHITE, "Rock Station: 181.FM ROCK will now play.");
  114.             }
  115.  
  116.             if(listitem == 1)
  117.             {
  118.                 //Rock Station 2
  119.                 PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=277192", 0,0,0,1,1);
  120.                 SendClientMessage(playerid, COLOR_WHITE, "Rock Station: 181.FM 80's will now play.");
  121.             }
  122.         }
  123.     }
  124.  return 1;
  125. }
Add Comment
Please, Sign In to add comment