Advertisement
Guest User

please help

a guest
Jan 23rd, 2014
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. // . . .=+=+=+=+=+=+=+=+=+=+=+=+= RADIO SCRIPT BY VAIBHAV =+=+=+=+=+=+=+=+=+=+=+=+=+=+=. . .
  2.  
  3. #include <a_samp>
  4.  
  5. #define FILTERSCRIPT
  6.  
  7. #define COLOR_LIGHTBLUE 0x33CCFFAA
  8. #define COLOR_WHITE 0xFFFFFFAA
  9. #define COLOR_PINK 0xFFC0CBAA
  10. #define COLOR_RED 0xAA3333AA
  11.  
  12. public OnFilterScriptInit()
  13. {
  14. print("\n--------------------------------------");
  15. print(" Online Radio script by •rTbreN_");
  16. print("--------------------------------------\n");
  17. return 1;
  18. }
  19.  
  20. main()
  21. {
  22. print("\n----------------------------------");
  23. print(" Online Radio script by •rTbreN_");
  24. print("----------------------------------\n");
  25. }
  26.  
  27. public OnPlayerCommandText(playerid, cmdtext[])
  28. {
  29. if(strcmp("/Radio info", cmdtext, true, 10) == 0)
  30. {
  31. SendClientMessage(playerid, COLOR_LIGHTBLUE, "~=~=~=~=~=~=~=~=~=~= Radio Channels ~=~=~=~=~=~=~=~=~=~=");
  32. SendClientMessage(playerid, COLOR_WHITE, "Getting Bore Want Some Music Use /Radio on");
  33. SendClientMessage(playerid, COLOR_WHITE, "Want To Stop Radio Use /Radio off");
  34. SendClientMessage(playerid, COLOR_WHITE, "We Hope You Like The Radio , Enjoy It.");
  35. SendClientMessage(playerid, COLOR_PINK, "The Radio Script Is Fully Made By Vaibhav");//Don't change credites please.
  36. SendClientMessage(playerid, COLOR_LIGHTBLUE, "~=~=~=~=~=~=~=~=~=~= Radio Channels ~=~=~=~=~=~=~=~=~=~=");
  37. return 1;
  38. }
  39. if (strcmp("/Radio off", cmdtext, true, 10) == 0)
  40. {
  41. StopAudioStreamForPlayer(playerid);
  42. SendClientMessage(playerid, 0xAA3333AA, "You have stopped the playing radio. . .");
  43. return 1;
  44. }
  45.  
  46. if (strcmp("/Radio on", cmdtext, true) == 0)
  47. {
  48. PlayAudioStreamForPlayer(playerid, "http://www.adriastream.net/cast/tunein.php/impulsradio/playlist.pls");
  49. SendClientMessage(playerid, 0xFFFFFFAA, "Type /Radio off to stop audio streaming.");
  50. return 1;
  51.  
  52.  
  53. //Fully created by Vaibhav
  54. }
  55.  
  56. return 0;
  57. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement