Advertisement
omgitsgodzilla

Radios

Apr 3rd, 2012
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1.  
  2. #include <a_samp>
  3.  
  4. #define FILTERSCRIPT
  5.  
  6. #define COLOR_GREEN 0x33AA33AA
  7. #define COLOR_WHITE 0xFFFFFFAA
  8.  
  9. public OnFilterScriptInit()
  10. {
  11. print("\n--------------------------------------");
  12. print(" Online Radios By xXitsgodzillaXx");
  13. print("--------------------------------------\n");
  14. return 1;
  15. }
  16.  
  17. main()
  18. {
  19. print("\n----------------------------------");
  20. print(" Online Radios By xXitsgodzillaXx");
  21. print("----------------------------------\n");
  22. }
  23.  
  24. public OnPlayerCommandText(playerid, cmdtext[])
  25. {
  26. if(strcmp("/music", cmdtext, true, 10) == 0)
  27. {
  28. SendClientMessage(playerid, COLOR_GREEN, "================Music!===========================");
  29. SendClientMessage(playerid, COLOR_WHITE, "/alternative /classicrock /metal /hiphop /techno");
  30. SendClientMessage(playerid, COLOR_WHITE, "/dubstep /stopmusuc");
  31. SendClientMessage(playerid, COLOR_WHITE, "Note, the radio stations are still beta.");
  32. SendClientMessage(playerid, COLOR_GREEN, "================Music!===========================");
  33. return 1;
  34. }
  35. if (strcmp("/alternative", cmdtext, true) == 0)
  36. {
  37. PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=237394");
  38. return 1;
  39. }
  40. if (strcmp("/classicrock", cmdtext, true) == 0)
  41. {
  42. PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=285516");
  43. return 1;
  44. }
  45. if (strcmp("/metal", cmdtext, true) == 0)
  46. {
  47. PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=2187022");
  48. return 1;
  49. }
  50. if (strcmp("/techno", cmdtext, true) == 0)
  51. {
  52. PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1377200");
  53. return 1;
  54. }
  55. if (strcmp("/hiphop", cmdtext, true) == 0)
  56. {
  57. PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1281016");
  58. return 1;
  59. }
  60. if (strcmp("/dubstep", cmdtext, true) == 0)
  61. {
  62. PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=2057197");
  63. return 1;
  64. }
  65. if (strcmp("/stopmusic", cmdtext, true) == 0)
  66. {
  67. StopAudioStreamForPlayer(playerid);
  68. return 1;
  69. }
  70. return 0;
  71. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement