jlalt

zzzz

Mar 31st, 2016
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 3.56 KB | None | 0 0
  1. #include <a_samp>
  2. #include <zcmd>
  3.  
  4. #if defined FILTERSCRIPT
  5.  
  6. public OnFilterScriptInit()
  7. {
  8.     print("\n--------------------------------------");
  9.     print(" Radio System is starting ..");
  10.     print(" Radio system has started.");
  11.     print("--------------------------------------\n");
  12.     return 1;
  13. }
  14.  
  15. public OnFilterScriptExit()
  16. {
  17.     print("\n--------------------------------------");
  18.     print(" Radio System has been shut down due to a Filterscript unload/Exit.");
  19.     print("--------------------------------------\n");
  20.     return 1;
  21. }
  22.  
  23. #else
  24.  
  25. main()
  26. {
  27.     print("\n----------------------------------");
  28.     print(" 3D Radio System by Omar");
  29.     print("----------------------------------\n");
  30. }
  31.  
  32. #endif
  33.  
  34.  
  35. CMD:radio(playerid,params[])
  36.     {
  37.         ShowPlayerDialog(playerid,90,DIALOG_STYLE_LIST,"{FF0000}My Radio list","{FFFF00}* YA LA LA LA(Arabic Song)\n{FFFF00}* Song 7mer\n{FFFF00}* Song mot5lfen\n{FFFF00}* Song klab","Select", "Cancel");
  38.         return 1;
  39.     }
  40. CMD:stopradio(playerid,params[])
  41.     {
  42.         StopAudioStreamForPlayer(playerid);
  43.         SendClientMessage(playerid, 0xFF0000AA, "[RADIO]You have turned off the radio.");
  44.         return 1;
  45.     }
  46.  
  47.  
  48. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  49. {
  50.     switch(dialogid)
  51.     {
  52.         case 90:
  53.         {
  54.             if(!response)
  55.             {
  56.                     SendClientMessage(playerid, 0xFF0000AA, "You canceled the dialog.");
  57.                     return 1;
  58.             }
  59.  
  60.             switch(listitem)
  61.             {
  62.                 case 0:
  63.                 {
  64.                     /*PlayAudioStreamForPlayer(playerid, "https://s03.solidfilesusercontent.com/MzMwY2YwODE5NTRjODU2YWZmYTk2ZTYxNGYwNjZjODQxNTYxMDU3MjoxYWxMZ3E6ekRQemlVRkxLakhmaTUyRWY0aDhvVEhFcllR/2D4rzRrKY7VgQ/Ya_La_La.mp3");
  65.                     SendClientMessage(playerid, 0xFF0000AA, "{FFFFFF}YA LA LA LA {FF0000}song is working now");
  66.                     SendClientMessage(playerid, 0xFF0000AA, "Type /stopradio to stop audio streaming.");*/
  67.                     ShowPlayerDialog(playerid,91,DIALOG_STYLE_LIST,"{FF0000}My Radio list","{FFFF00}* YA LA LA LA(Arabic Song)\n{FFFF00}* Song 7mer\n{FFFF00}* Song mot5lfen\n{FFFF00}* Song klab","Select", "Cancel");
  68.                 }
  69.                 case 1:
  70.                 {
  71.                     PlayAudioStreamForPlayer(playerid, "");
  72.                     SendClientMessage(playerid, 0xFF0000AA, "Song is working now");
  73.                     SendClientMessage(playerid, 0xFF0000AA, "Type /stopradio to stop audio streaming.");
  74.                 }
  75.                 case 2:
  76.                 {
  77.                     PlayAudioStreamForPlayer(playerid, "");
  78.                     SendClientMessage(playerid, 0xFF0000AA, "Song is working now");
  79.                     SendClientMessage(playerid, 0xFF0000AA, "Type /stopradio to stop audio streaming.");
  80.                 }
  81.             }
  82.         }
  83.         case 91:
  84.         {
  85.             if(!response)
  86.             {
  87.                     SendClientMessage(playerid, 0xFF0000AA, "You canceled the dialog.");
  88.                     return 1;
  89.             }
  90.  
  91.             switch(listitem)
  92.             {
  93.                 case 0:
  94.                 {
  95.                     PlayAudioStreamForPlayer(playerid, "https://s03.solidfilesusercontent.com/MzMwY2YwODE5NTRjODU2YWZmYTk2ZTYxNGYwNjZjODQxNTYxMDU3MjoxYWxMZ3E6ekRQemlVRkxLakhmaTUyRWY0aDhvVEhFcllR/2D4rzRrKY7VgQ/Ya_La_La.mp3");
  96.                     SendClientMessage(playerid, 0xFF0000AA, "{FFFFFF}YA LA LA LA {FF0000}song is working now");
  97.                     SendClientMessage(playerid, 0xFF0000AA, "Type /stopradio to stop audio streaming.");
  98.                 }
  99.                 case 1:
  100.                 {
  101.                     PlayAudioStreamForPlayer(playerid, "");
  102.                     SendClientMessage(playerid, 0xFF0000AA, "Song is working now");
  103.                     SendClientMessage(playerid, 0xFF0000AA, "Type /stopradio to stop audio streaming.");
  104.                 }
  105.                 case 2:
  106.                 {
  107.                     PlayAudioStreamForPlayer(playerid, "");
  108.                     SendClientMessage(playerid, 0xFF0000AA, "Song is working now");
  109.                     SendClientMessage(playerid, 0xFF0000AA, "Type /stopradio to stop audio streaming.");
  110.                 }
  111.             }
  112.         }
  113.     }
  114.     return 1;
  115. }
Advertisement
Add Comment
Please, Sign In to add comment