Saad1

Classio - Radio System

Jul 12th, 2012
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 3.88 KB | None | 0 0
  1. /*
  2.                         ********************************
  3.                         * > Scripter : Mr.Fames (Saad) *
  4.                         * > Script Name : CRadio       *
  5.                         * > Script Version : 0.1       *
  6.                         * > Compiled On : W7 x64       *
  7.                         * > Compiled Using : Pawno     *
  8.                         * > Songs Host : DropBox       *
  9.                         * > URL Shortner : bitly.com   *
  10.                         ********************************
  11. */
  12. //==============================================================================
  13. #include                    <a_samp>
  14. //==============================================================================
  15. public OnPlayerCommandText(playerid, cmdtext[])
  16. {
  17.     if(!strcmp(cmdtext, "/radio", true, 6))
  18.     {
  19.         ShowPlayerDialog(playerid, 2012, DIALOG_STYLE_LIST, "Choose An option", "Choose An Artist\nEnter A URL\nStop The Radio", "Submit", "Cancel");
  20.         return 1;
  21.     }
  22.     return 0;
  23. }
  24. //==============================================================================
  25. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  26. {
  27.     if(dialogid == 2012)
  28.     {
  29.         if(response)
  30.         {
  31.             if(listitem == 0)
  32.             {
  33.                 ShowPlayerDialog(playerid, 2013, DIALOG_STYLE_LIST, "Choose Your Artist", "Linkin Park\n-More Artists Coming In V0.2-", "Submit", "Cancel");
  34.             }
  35.             else if(listitem == 1)
  36.             {
  37.                 ShowPlayerDialog(playerid, 2015, DIALOG_STYLE_INPUT, "Enter The URL To Your Song", "Please Enter The URL To Your Song In Order To Play It", "Play", "Cancel");
  38.             }
  39.             else if(listitem == 3)
  40.             {
  41.                 StopAudioStreamForPlayer(playerid);
  42.             }
  43.         }
  44.     }
  45.     if(dialogid == 2013)
  46.     {
  47.         if(response)
  48.         {
  49.             if(listitem == 0)
  50.             {
  51.                 ShowPlayerDialog(playerid, 2014, DIALOG_STYLE_LIST, "Choose Your Song", "Lost In The Echo\nIn My Remains\nBurn It Down\nLies Greed Misery\nI'll Be Gone\nCastle Of Glass\nVictimized\nRoads Untraveled\nSkin To Bone\nUntil It Breaks\nTinfoil\nPowerless", "Submit", "Cancel");
  52.             }
  53.         }
  54.     }
  55.     if(dialogid == 2014)
  56.     {
  57.         if(response)
  58.         {
  59.             if(listitem == 0)
  60.             {
  61.                 StopAudioStreamForPlayer(playerid);
  62.                 PlayAudioStreamForPlayer(playerid, "http://bit.ly/M4ggdH");
  63.             }
  64.             else if(listitem == 1)
  65.             {
  66.                 StopAudioStreamForPlayer(playerid);
  67.                 PlayAudioStreamForPlayer(playerid, "http://bit.ly/NqkbkK");
  68.             }
  69.             else if(listitem == 2)
  70.             {
  71.                 StopAudioStreamForPlayer(playerid);
  72.                 PlayAudioStreamForPlayer(playerid, "http://bit.ly/NpRdNZ");
  73.             }
  74.             else if(listitem == 3)
  75.             {
  76.                 StopAudioStreamForPlayer(playerid);
  77.                 PlayAudioStreamForPlayer(playerid, "http://bit.ly/MjImUj");
  78.             }
  79.             else if(listitem == 4)
  80.             {
  81.                 StopAudioStreamForPlayer(playerid);
  82.                 PlayAudioStreamForPlayer(playerid, "http://bit.ly/Nnvqd9");
  83.             }
  84.             else if(listitem == 5)
  85.             {
  86.                 StopAudioStreamForPlayer(playerid);
  87.                 PlayAudioStreamForPlayer(playerid, "http://bit.ly/OzmYFw");
  88.             }
  89.             else if(listitem == 6)
  90.             {
  91.                 StopAudioStreamForPlayer(playerid);
  92.                 PlayAudioStreamForPlayer(playerid, "http://bit.ly/LhjR8I");
  93.             }
  94.             else if(listitem == 7)
  95.             {
  96.                 StopAudioStreamForPlayer(playerid);
  97.                 PlayAudioStreamForPlayer(playerid, "http://bit.ly/MjJdEf");
  98.             }
  99.             else if(listitem == 8)
  100.             {
  101.                 StopAudioStreamForPlayer(playerid);
  102.                 PlayAudioStreamForPlayer(playerid, "http://bit.ly/Lhk1wX");
  103.             }
  104.             else if(listitem == 9)
  105.             {
  106.                 StopAudioStreamForPlayer(playerid);
  107.                 PlayAudioStreamForPlayer(playerid, "http://bit.ly/N7HAbS");
  108.             }
  109.             else if(listitem == 10)
  110.             {
  111.                 StopAudioStreamForPlayer(playerid);
  112.                 PlayAudioStreamForPlayer(playerid, "http://bit.ly/MjJs2j");
  113.             }
  114.             else if(listitem == 11)
  115.             {
  116.                 StopAudioStreamForPlayer(playerid);
  117.                 PlayAudioStreamForPlayer(playerid, "http://bit.ly/NNOVKG");
  118.             }
  119.         }
  120.     }
  121.     else if(dialogid == 2015)
  122.     {
  123.         if(response)
  124.         {
  125.             PlayAudioStreamForPlayer(playerid, inputtext);
  126.         }
  127.     }
  128.     return 1;
  129. }
Advertisement
Add Comment
Please, Sign In to add comment