Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2015
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.06 KB | None | 0 0
  1. if(strcmp(cmd, "/radio", true) == 0)
  2. {
  3. if(IsPlayerInAnyVehicle(playerid))
  4. {
  5. new sradio[1900];
  6. strcat(sradio, "{FFFFFF}RadioWISH {FF0000}\t\t\t /radiowish\n", 1900 );
  7. strcat(sradio, "{FFFFFF}Radio HiT FM {FF0000}\t\t\t /radiohit\n", 1900 );
  8. strcat(sradio, "{FFFFFF}Contact FM {FF0000}\t\t\t /contactfm\n", 1900 );
  9. strcat(sradio, "{FFFFFF}Radio Romanian Hip-Hop {FF0000}\t /romanianhiphop\n", 1900 );
  10. strcat(sradio, "{FFFFFF}Radio Romanian Manele {FF0000}\t /romanianmanele\n", 1900 );
  11. strcat(sradio, "{FFFFFF}Radio Romanian Popular {FF0000}\t /romanianpopular\n", 1900 );
  12. strcat(sradio, "{FFFFFF}Pro FM {FF0000}\t\t\t\t /profm\n", 1900 );
  13. strcat(sradio, "{FFFFFF}Radio GMusic Rock {FF0000}\t\t /gmusic\n", 1900 );
  14. strcat(sradio, "{FFFFFF}radio-tube.pl Dubstep {FF0000}\t\t /radiotube\n", 1900 );
  15. strcat(sradio, "{FFFFFF}Radio Mafia {FF0000}\t\t\t /radiomafia\n", 1900 );
  16. strcat(sradio, "{FFFFFF}Radio Greu de Difuzat {FF0000}\t\t /greudedifuzat\n", 1900 );
  17. strcat(sradio, "{FF0000}Opreste radioul \t\t /stopradio", 1900 );
  18. ShowPlayerDialog(playerid, DIALOG_RADIO, DIALOG_STYLE_LIST, "{FFFFFF}Meniu {FF0000}Radio", sradio, "Selecteaza","Inchide");
  19. }
  20. return 1;
  21. }
  22. if(strcmp(cmd, "/radiohit", true) == 0)
  23. {
  24. if(IsPlayerInAnyVehicle(playerid))
  25. {
  26. new pName[MAX_PLAYER_NAME];
  27. GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
  28. format(string,sizeof string,"{FF0000}%s {FFFFFF}asculta {FF0000}Radio HiT FM (/radiohit)",pName);
  29. SendClientMessageToAll(0xFFFFFFAA,string);
  30. PlayAudioStreamForPlayer(playerid, "http://www.radio-hit.ro/asculta.m3u");
  31. GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~w~buffering ~r~radio hit~w~...", 1500, 3);
  32. }
  33. return 1;
  34. }
  35. if(strcmp(cmd, "/radiowish", true) == 0)
  36. {
  37. if(IsPlayerInAnyVehicle(playerid))
  38. {
  39. new pName[MAX_PLAYER_NAME];
  40. GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
  41. format(string,sizeof string,"{FF0000}%s {FFFFFF}asculta {FF0000}RadioWISH (/radiowish)",pName);
  42. SendClientMessageToAll(0xFFFFFFAA,string);
  43. PlayAudioStreamForPlayer(playerid, "http://www.radiowish.ro/live.m3u");
  44. GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~w~buffering ~r~radio wish~w~...", 1500, 3);
  45. }
  46. return 1;
  47. }
  48. if(strcmp(cmd, "/contactfm", true) == 0)
  49. {
  50. if(IsPlayerInAnyVehicle(playerid))
  51. {
  52. new pName[MAX_PLAYER_NAME];
  53. GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
  54. format(string,sizeof string,"{FF0000}%s {FFFFFF}asculta {FF0000}Contact FM (/contactfm)",pName);
  55. SendClientMessageToAll(0xFFFFFFAA,string);
  56. PlayAudioStreamForPlayer(playerid, "http://www.contactfm.ro/listen.pls");
  57. GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~w~buffering ~r~contact fm~w~...", 1500, 3);
  58. }
  59. return 1;
  60. }
  61. if(strcmp(cmd, "/romanianhiphop", true) == 0)
  62. {
  63. if(IsPlayerInAnyVehicle(playerid))
  64. {
  65. new pName[MAX_PLAYER_NAME];
  66. GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
  67. format(string,sizeof string,"{FF0000}%s {FFFFFF}asculta {FF0000}Radio Romanian Hip-Hop (/romanianhiphop)",pName);
  68. SendClientMessageToAll(0xFFFFFFAA,string);
  69. PlayAudioStreamForPlayer(playerid, "http://radioromanian.net/hiphop.pls");
  70. GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~w~buffering ~r~radio romanian hip-hop~w~...", 1500, 3);
  71. }
  72. return 1;
  73. }
  74. if(strcmp(cmd, "/romanianpopular", true) == 0)
  75. {
  76. if(IsPlayerInAnyVehicle(playerid))
  77. {
  78. new pName[MAX_PLAYER_NAME];
  79. GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
  80. format(string,sizeof string,"{FF0000}%s {FFFFFF}asculta {FF0000}Radio Romanian Popular (/romanianpopular)",pName);
  81. SendClientMessageToAll(0xFFFFFFAA,string);
  82. PlayAudioStreamForPlayer(playerid, "http://radioromanian.net/popular.pls");
  83. GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~w~buffering ~r~radio romanian popular~w~...", 1500, 3);
  84. }
  85. return 1;
  86. }
  87. if(strcmp(cmd, "/romanianmanele", true) == 0)
  88. {
  89. if(IsPlayerInAnyVehicle(playerid))
  90. {
  91. new pName[MAX_PLAYER_NAME];
  92. GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
  93. format(string,sizeof string,"{FF0000}%s {FFFFFF}asculta {FF0000}Radio Romanian Manele (/romanianmanele)",pName);
  94. SendClientMessageToAll(0xFFFFFFAA,string);
  95. PlayAudioStreamForPlayer(playerid, "http://radioromanian.net/manele.pls");
  96. GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~w~buffering ~r~radio romanian manele~w~...", 1500, 3);
  97. }
  98. return 1;
  99. }
  100. if(strcmp(cmd, "/profm", true) == 0)
  101. {
  102. if(IsPlayerInAnyVehicle(playerid))
  103. {
  104. new pName[MAX_PLAYER_NAME];
  105. GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
  106. format(string,sizeof string,"{FF0000}%s {FFFFFF}asculta {FF0000}Pro FM (/profm)",pName);
  107. SendClientMessageToAll(0xFFFFFFAA,string);
  108. PlayAudioStreamForPlayer(playerid, "http://stream.profm.ro:8012/profm.mp3");
  109. GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~w~buffering ~r~pro fm~w~...", 1500, 3);
  110. }
  111. return 1;
  112. }
  113. if(strcmp(cmd, "/gmusic", true) == 0)
  114. {
  115. if(IsPlayerInAnyVehicle(playerid))
  116. {
  117. new pName[MAX_PLAYER_NAME];
  118. GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
  119. format(string,sizeof string,"{FF0000}%s {FFFFFF}asculta {FF0000}Radio GMusic Rock (/gmusic)",pName);
  120. SendClientMessageToAll(0xFFFFFFAA,string);
  121. PlayAudioStreamForPlayer(playerid, "http://www.radiogmusic.com/rock.m3u");
  122. GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~w~buffering ~r~radio gmusci rock~w~...", 1500, 3);
  123. }
  124. return 1;
  125. }
  126. if(strcmp(cmd, "/radiotube", true) == 0)
  127. {
  128. if(IsPlayerInAnyVehicle(playerid))
  129. {
  130. new pName[MAX_PLAYER_NAME];
  131. GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
  132. format(string,sizeof string,"{FF0000}%s {FFFFFF}asculta {FF0000}radio-tube.pl Dubstep (/radiotube)",pName);
  133. SendClientMessageToAll(0xFFFFFFAA,string);
  134. PlayAudioStreamForPlayer(playerid, "http://s4.radiohost.pl:8154/listen.pls");
  135. GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~w~buffering ~r~radio-tube.pl dubstep~w~...", 1500, 3);
  136. }
  137. return 1;
  138. }
  139. if(strcmp(cmd, "/radiomafia", true) == 0)
  140. {
  141. if(IsPlayerInAnyVehicle(playerid))
  142. {
  143. new pName[MAX_PLAYER_NAME];
  144. GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
  145. format(string,sizeof string,"{FF0000}%s {FFFFFF}asculta {FF0000}Radio Mafia (/radiomafia)",pName);
  146. SendClientMessageToAll(0xFFFFFFAA,string);
  147. PlayAudioStreamForPlayer(playerid, "http://www.radiomafia.ro/listen.m3u");
  148. GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~w~buffering ~r~radio mafia~w~...", 1500, 3);
  149. }
  150. return 1;
  151. }
  152. if(strcmp(cmd, "/greudedifuzat", true) == 0)
  153. {
  154. if(IsPlayerInAnyVehicle(playerid))
  155. {
  156. new pName[MAX_PLAYER_NAME];
  157. GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
  158. format(string,sizeof string,"{FF0000}%s {FFFFFF}asculta {FF0000}Radio Greu de Difuzat (/greudedifuzat)",pName);
  159. SendClientMessageToAll(0xFFFFFFAA,string);
  160. PlayAudioStreamForPlayer(playerid, "http://www.greudedifuzat.eu/greudedifuzat.m3u");
  161. GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~w~buffering ~r~radio greu de difuzat~w~...", 1500, 3);
  162. }
  163. return 1;
  164. }
  165. if(strcmp(cmd, "/stopradio", true) == 0)
  166. {
  167. PlayAudioStreamForPlayer(playerid, "Radio oprit.");
  168. StopAudioStreamForPlayer(playerid);
  169. return 1;
  170. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement