Owen007

TransCP

Jun 20th, 2016
373
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.75 KB | None | 0 0
  1. //--[FS]Radio Transmission System + Checkpoints
  2. //--Created 18/6/2016
  3. //--developer: Owen007
  4. //--Mainly used for Zombie server you can edit it and make it for your server too.
  5. //--Thanks to all my SA-MP friends who helped me.
  6. //--You can edit it and make it as a automate server messages but not without my permission ;)
  7. //timer will start after 5 minutes have fun,
  8. //--Credits: Owen007 and special thanks to (Mbilal for helping and making this script perfect and better ---- he is a nice guy)
  9.  
  10. //Includes really needed
  11. #include <a_samp>
  12. #include <streamer>
  13. #include <foreach>
  14.  
  15. new COUNTER;
  16. //forwards of Tranmission you can add more.
  17. forward TransMission(playerid); //transmission no 1
  18. // A list of colors
  19. #define COLOR_YELLOW 0xDABB3EAA
  20. #define GREEN 0x21DD00FF
  21. #define RED 0xE60000FF
  22. #define YELLOW 0xFFFF00FF
  23. #define ORANGE 0xF97804FF
  24. #define LIGHTRED 0xFF8080FF
  25. #define LIGHTBLUE 0x00C2ECFF
  26. #define PURPLE 0xB360FDFF
  27. #define PLAYER_COLOR 0xFFFFFFFF
  28. #define BLUE 0x1229FAFF
  29. #define LIGHTGREEN 0x38FF06FF
  30. #define DARKPINK 0xE100E1FF
  31. #define DARKGREEN 0x008040FF
  32. #define ANNOUNCEMENT 0x6AF7E1FF
  33. #define GRAY 0xCECECEFF
  34. #define HITCOLOR 0xFF0000FF
  35. #define COLOR_LIME 0x10F441AA
  36.  
  37.  
  38. public OnFilterScriptInit()
  39. {
  40. //Transmission Play time:-
  41. SetTimer("TransMission", 300 * 1000, 1); //this will show message after 5 minutes
  42.  
  43. print("\n--------------------------------------");
  44. print(" Transmission + Checkpint v1.1 System Loaded.");
  45. print("--------------------------------------\n");
  46. return 1;
  47. }
  48. //These are the public transmission which will display on your gamemode. You can edit these lines
  49. public TransMission()
  50. {
  51. COUNTER++;
  52. switch (COUNTER)
  53. {
  54. case 1:
  55. {
  56. SendClientMessageToAll(RED,"~Radio TRANSMISSION~");
  57. SendClientMessageToAll(GREEN,"If any Survivours is hearing this message");
  58. SendClientMessageToAll(GREEN,"Please go to ____Glen Park___ for further assisstance");
  59. SendClientMessageToAll(GREEN,"Umbrella Corp had setup their for survivors");
  60. SendClientMessageToAll(GREEN,"We have Food and Medical Service");
  61. SendClientMessageToAll(GREEN,"Please be safe while arriving here or zombies will hunt you down.");
  62. foreach(Player,i)
  63. PlayAudioStreamForPlayer(i,"http://k003.kiwi6.com/hotlink/blb3aqymb1/Glen_park.mp3"),
  64. SetPlayerCheckpoint(i, 1969.99, -1199.42, 25.64, 50.0); //CheckPoint 1
  65. }
  66. case 2:
  67. {
  68. SendClientMessageToAll(RED,"~Radio TRANSMISSION~");
  69. SendClientMessageToAll(GREEN,"If any Survivours is hearing this message");
  70. SendClientMessageToAll(GREEN,"Please go to ___Santa Maria Beach___ for further assisstance");
  71. SendClientMessageToAll(GREEN,"Umbrella Corp had setup their for survivors");
  72. SendClientMessageToAll(GREEN,"We have Food and Medical Service");
  73. SendClientMessageToAll(GREEN,"Please be safe while arriving here or zombies will hunt you down.");
  74. foreach(Player,i)
  75. PlayAudioStreamForPlayer(i,"http://k003.kiwi6.com/hotlink/346l57lq9m/Santa_beacg.mp3"),
  76. SetPlayerCheckpoint(i, 218.01, -1823.82, 40.06, 50.0); //CheckPoint 2
  77. }
  78. case 3:
  79. {
  80. SendClientMessageToAll(RED,"~Radio TRANSMISSION~");
  81. SendClientMessageToAll(GREEN,"If any Survivours is hearing this message");
  82. SendClientMessageToAll(GREEN,"Please go to ____Unity Station____ for further assisstance");
  83. SendClientMessageToAll(GREEN,"Umbrella Corp had setup their for survivors");
  84. SendClientMessageToAll(GREEN,"We have Food and Medical Service");
  85. SendClientMessageToAll(GREEN,"Please be safe while arriving here or zombies will hunt you down.");
  86. foreach(Player,i)
  87. PlayAudioStreamForPlayer(i,"http://k003.kiwi6.com/hotlink/nqc1mpl4qe/Unity.mp3"),
  88. SetPlayerCheckpoint(i, 1774.26, -1939.52, 13.56, 50.0); //CheckPoint 3
  89. }
  90. case 4:
  91. {
  92. SendClientMessageToAll(RED,"~Radio TRANSMISSION~");
  93. SendClientMessageToAll(GREEN,"If any Survivours is hearing this message");
  94. SendClientMessageToAll(GREEN,"Please go to ___Market___ for further assisstance");
  95. SendClientMessageToAll(GREEN,"Umbrella Corp had setup their for survivors");
  96. SendClientMessageToAll(GREEN,"We have Food and Medical Service");
  97. SendClientMessageToAll(GREEN,"Please be safe while arriving here or zombies will hunt you down.");
  98. foreach(Player,i)
  99. PlayAudioStreamForPlayer(i,"http://k003.kiwi6.com/hotlink/kirjuuvsky/Marker.mp3"),
  100. SetPlayerCheckpoint(i, 776.31, -1353.71, 13.54, 50.0); //CheckPoint 4
  101. }
  102. case 5:
  103. {
  104. SendClientMessageToAll(RED,"~Radio TRANSMISSION~");
  105. SendClientMessageToAll(GREEN,"If any Survivours is hearing this message");
  106. SendClientMessageToAll(GREEN,"Please go to ___Grove Street___ for further assisstance");
  107. SendClientMessageToAll(GREEN,"Umbrella Corp had setup their for survivors");
  108. SendClientMessageToAll(GREEN,"We have Food and Medical Service");
  109. SendClientMessageToAll(GREEN,"Please be safe while arriving here or zombies will hunt you down.");
  110. foreach(Player,i)
  111. PlayAudioStreamForPlayer(i,"http://k003.kiwi6.com/hotlink/2fxrypdl9j/Grove.mp3"),
  112. SetPlayerCheckpoint(i, 2501.05, -1666.91, 13.36, 50.0); //CheckPoint 5
  113. }
  114. case 6:
  115. {
  116. SendClientMessageToAll(RED,"~Radio TRANSMISSION~");
  117. SendClientMessageToAll(GREEN,"If any Survivours is hearing this message");
  118. SendClientMessageToAll(GREEN,"Please go to ___Rodeo___ for further assisstance");
  119. SendClientMessageToAll(GREEN,"Umbrella Corp had setup their for survivors");
  120. SendClientMessageToAll(GREEN,"We have Food and Medical Service");
  121. SendClientMessageToAll(GREEN,"Please be safe while arriving here or zombies will hunt you down.");
  122. foreach(Player,i)
  123. PlayAudioStreamForPlayer(i,"http://k003.kiwi6.com/hotlink/0f4psm4ncu/Rodeo.mp3"),
  124. SetPlayerCheckpoint(i, 2709.97, -1065.97, 75.37, 50.0); //CheckPoint 7
  125. }
  126. case 7:
  127. {
  128. SendClientMessageToAll(RED,"~Radio TRANSMISSION~");
  129. SendClientMessageToAll(GREEN,"If any Survivours is hearing this message");
  130. SendClientMessageToAll(GREEN,"Please go to ___Military Secret base___ for further assisstance");
  131. SendClientMessageToAll(GREEN,"Umbrella Corp had setup their for survivors");
  132. SendClientMessageToAll(GREEN,"We have Food and Medical Service");
  133. SendClientMessageToAll(GREEN,"Please be safe while arriving here or zombies will hunt you down.");
  134. foreach(Player,i)
  135. PlayAudioStreamForPlayer(i,"http://k003.kiwi6.com/hotlink/urrtvuftnd/Secret_base.mp3"),
  136. SetPlayerCheckpoint(i, 535.44, -1477.09, 14.54, 50.0); //CheckPoint 6
  137. }
  138. case 8:
  139. {
  140. SendClientMessageToAll(RED,"~Radio TRANSMISSION~");
  141. SendClientMessageToAll(GREEN,"If any Survivours is hearing this message");
  142. SendClientMessageToAll(GREEN,"Please go to ___Vinewood___ for further assisstance");
  143. SendClientMessageToAll(GREEN,"Umbrella Corp had setup their for survivors");
  144. SendClientMessageToAll(GREEN,"We have Food and Medical Service");
  145. SendClientMessageToAll(GREEN,"Please be safe while arriving here or zombies will hunt you down.");
  146. foreach(Player,i)
  147. PlayAudioStreamForPlayer(i,"http://k003.kiwi6.com/hotlink/55fy49xlr5/Vinewood.mp3"),
  148. SetPlayerCheckpoint(i, 1005.63, -940.09, 42.18, 50.0); //CheckPoint 8
  149. }
  150. case 9:
  151. {
  152. SendClientMessageToAll(RED,"~Radio TRANSMISSION~");
  153. SendClientMessageToAll(GREEN,"If any Survivours is hearing this message");
  154. SendClientMessageToAll(GREEN,"Please go to ___Gate C___ for further assisstance");
  155. SendClientMessageToAll(GREEN,"Umbrella Corp had setup their for survivors");
  156. SendClientMessageToAll(GREEN,"We have Food and Medical Service");
  157. SendClientMessageToAll(GREEN,"Please be safe while arriving here or zombies will hunt you down.");
  158. foreach(Player,i)
  159. PlayAudioStreamForPlayer(i,"http://k003.kiwi6.com/hotlink/ppm8ehtlwu/Gate_c.mp3"),
  160. SetPlayerCheckpoint(i, 1175.52, -2035.39, 69.14, 50.0); //CheckPoint 9
  161. }
  162. case 10:
  163. {
  164. SendClientMessageToAll(RED,"~Radio TRANSMISSION~");
  165. SendClientMessageToAll(GREEN,"If any Survivours is hearing this message");
  166. SendClientMessageToAll(GREEN,"Please go to ___D12 Crash Site___ for further assisstance");
  167. SendClientMessageToAll(GREEN,"Umbrella Corp had setup their for survivors");
  168. SendClientMessageToAll(GREEN,"We have Food and Medical Service");
  169. SendClientMessageToAll(GREEN,"Please be safe while arriving here or zombies will hunt you down.");
  170. foreach(Player,i)
  171. PlayAudioStreamForPlayer(i,"http://k003.kiwi6.com/hotlink/wpk02p7f3f/D12.mp3"),
  172. SetPlayerCheckpoint(i, 2434.31, -1502.13, 23.83, 50.0); //CheckPoint 10
  173. COUNTER = 0;
  174. }
  175. }
  176. return 1;
  177. }
  178.  
  179. //on player spawn
  180. public OnPlayerSpawn(playerid)
  181. {
  182. // this is a message so that people will do /audiomsg after seeing this msg. for not viewing these audiostream links.
  183. SendClientMessageToAll(RED,"PLEASE I WILL SUGGEST OFF AUDIOMESSAGE USE /audiomsg FOR BETTER GAMEPLAY. GOOD LUCK");
  184. return 1;
  185. }
Add Comment
Please, Sign In to add comment