Advertisement
Owen007

TransCheck

Jun 20th, 2016
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.73 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.  
  8.  
  9. //Includes really needed
  10. #include <a_samp>
  11. #include <streamer>
  12.  
  13. #define TEAM_ZOMBIE 1 //defines used to define a team.
  14. #define TEAM_HUMAN 2
  15.  
  16. new gTeam[MAX_PLAYERS]; // i added team for zombie server but you can remove teams also and can make it as a automated server messages.
  17.  
  18. //forwards of Tranmission you can add more.
  19. forward TransMission(playerid); //transmission no 1
  20. forward TransMission1(playerid); //transmission no 2
  21. forward TransMission2(playerid); //transmission no 3
  22. forward TransMission3(playerid); //transmission no 4
  23. forward TransMission4(playerid); //transmission no 5
  24. forward TransMission5(playerid); //transmission no 6
  25. forward TransMission6(playerid); //transmission no 7
  26. forward TransMission7(playerid); //transmission no 8
  27. forward TransMission8(playerid); //transmission no 9
  28. forward TransMission9(playerid); //transmission no 10
  29.  
  30. //forwards of Playsound you can add more.
  31. forward PlaySound(playerid); //Playsound no 1
  32. forward PlaySound1(playerid); //Playsound no 2
  33. forward PlaySound2(playerid); //Playsound no 3
  34. forward PlaySound3(playerid); //Playsound no 4
  35. forward PlaySound4(playerid); //Playsound no 5
  36. forward PlaySound5(playerid); //Playsound no 6
  37. forward PlaySound6(playerid); //Playsound no 7
  38. forward PlaySound7(playerid); //Playsound no 8
  39. forward PlaySound8(playerid); //Playsound no 9
  40. forward PlaySound9(playerid); //Playsound no 10
  41.  
  42. //forwards of Checkpoints you can add more.
  43. forward ShowCP(playerid);
  44. forward ShowCP1(playerid);
  45. forward ShowCP2(playerid);
  46. forward ShowCP3(playerid);
  47. forward ShowCP4(playerid);
  48. forward ShowCP5(playerid);
  49. forward ShowCP6(playerid);
  50. forward ShowCP7(playerid);
  51. forward ShowCP8(playerid);
  52. forward ShowCP9(playerid);
  53.  
  54. // A list of colors
  55. #define COLOR_YELLOW 0xDABB3EAA
  56. #define GREEN 0x21DD00FF
  57. #define RED 0xE60000FF
  58. #define YELLOW 0xFFFF00FF
  59. #define ORANGE 0xF97804FF
  60. #define LIGHTRED 0xFF8080FF
  61. #define LIGHTBLUE 0x00C2ECFF
  62. #define PURPLE 0xB360FDFF
  63. #define PLAYER_COLOR 0xFFFFFFFF
  64. #define BLUE 0x1229FAFF
  65. #define LIGHTGREEN 0x38FF06FF
  66. #define DARKPINK 0xE100E1FF
  67. #define DARKGREEN 0x008040FF
  68. #define ANNOUNCEMENT 0x6AF7E1FF
  69. #define GRAY 0xCECECEFF
  70. #define HITCOLOR 0xFF0000FF
  71. #define COLOR_LIME 0x10F441AA
  72.  
  73.  
  74. public OnFilterScriptInit()
  75. {
  76. //Transmission Play time:-
  77. SetTimer("TransMission",180000,false); //timers 180 x 1000 means that 180 sec { Extra about these transmission }
  78. SetTimer("TransMission1",360000,false); // total of 180+180=360 False means that each timer wont repeat.
  79. SetTimer("TransMission2",540000,false); // total of 360+180=540 Transmission 1,2,3 these numbers are not necessary but i added them to make a deatil.
  80. SetTimer("TransMission3",660000,false); // total of 540+180=660
  81. SetTimer("TransMission4",840000,false); // total of 660+180=840
  82. SetTimer("TransMission5",960000,false); // total of 840+180=960
  83. SetTimer("TransMission6",1140000,false); // total of 960+180=1140
  84. SetTimer("TransMission7",1320000,false); // total of 1140+180=1320
  85. SetTimer("TransMission8",1500000,false); // total of 1320+180=1500
  86. SetTimer("TransMission9",1680000,false); // total of 1500+180=1680
  87. //Sound Play time:-
  88. SetTimerEx("PlaySound",180000,false,"i"); // same here as transmission comment
  89. SetTimerEx("PlaySound1",360000,false,"i");
  90. SetTimerEx("PlaySound2",540000,false,"i");
  91. SetTimerEx("PlaySound3",660000,false,"i");
  92. SetTimerEx("PlaySound4",840000,false,"i");
  93. SetTimerEx("PlaySound5",960000,false,"i");
  94. SetTimerEx("PlaySound6",1140000,false,"i");
  95. SetTimerEx("PlaySound7",1320000,false,"i");
  96. SetTimerEx("PlaySound8",1500000,false,"i");
  97. SetTimerEx("PlaySound9",1680000,false,"i");
  98. //Cp Play time:-
  99. SetTimerEx("ShowCP",180000, false, "i"); // same here as transmission comment
  100. SetTimerEx("ShowCP1",360000, false, "i");
  101. SetTimerEx("ShowCP2",540000, false, "i");
  102. SetTimerEx("ShowCP3", 660000, false, "i");
  103. SetTimerEx("ShowCP4", 840000, false, "i");
  104. SetTimerEx("ShowCP5", 960000, false, "i");
  105. SetTimerEx("ShowCP6", 1140000, false, "i");
  106. SetTimerEx("ShowCP7", 1320000, false, "i");
  107. SetTimerEx("ShowCP8", 1500000, false, "i");
  108. SetTimerEx("ShowCP9", 1680000, false, "i");
  109.  
  110. print("\n--------------------------------------");
  111. print(" Transmission + Checkpint System Loaded.");
  112. print("--------------------------------------\n");
  113. return 1;
  114. }
  115. //These are the public transmission which will display on your gamemode. You can edit these lines
  116. public TransMission(playerid)
  117. {
  118. SendClientMessageToAll(RED,"~Radio TRANSMISSION~");
  119. SendClientMessageToAll(GREEN,"If any Survivours is hearing this message");
  120. SendClientMessageToAll(GREEN,"Please go to ____Glen Park___ for further assisstance");
  121. SendClientMessageToAll(GREEN,"Umbrella Corp had setup their for survivors");
  122. SendClientMessageToAll(GREEN,"We have Food and Medical Service");
  123. SendClientMessageToAll(GREEN,"Please be safe while arriving here or zombies will hunt you down.");
  124. return 1;
  125. }
  126.  
  127. public TransMission1(playerid)
  128. {
  129. SendClientMessageToAll(RED,"~Radio TRANSMISSION~");
  130. SendClientMessageToAll(GREEN,"If any Survivours is hearing this message");
  131. SendClientMessageToAll(GREEN,"Please go to ___Santa Maria Beach___ for further assisstance");
  132. SendClientMessageToAll(GREEN,"Umbrella Corp had setup their for survivors");
  133. SendClientMessageToAll(GREEN,"We have Food and Medical Service");
  134. SendClientMessageToAll(GREEN,"Please be safe while arriving here or zombies will hunt you down.");
  135. return 1;
  136. }
  137.  
  138. public TransMission2(playerid)
  139. {
  140. SendClientMessageToAll(RED,"~Radio TRANSMISSION~");
  141. SendClientMessageToAll(GREEN,"If any Survivours is hearing this message");
  142. SendClientMessageToAll(GREEN,"Please go to ____Unity Station____ 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. return 1;
  147. }
  148.  
  149. public TransMission3(playerid)
  150. {
  151. SendClientMessageToAll(RED,"~Radio TRANSMISSION~");
  152. SendClientMessageToAll(GREEN,"If any Survivours is hearing this message");
  153. SendClientMessageToAll(GREEN,"Please go to ___Market___ for further assisstance");
  154. SendClientMessageToAll(GREEN,"Umbrella Corp had setup their for survivors");
  155. SendClientMessageToAll(GREEN,"We have Food and Medical Service");
  156. SendClientMessageToAll(GREEN,"Please be safe while arriving here or zombies will hunt you down.");
  157. return 1;
  158. }
  159.  
  160. public TransMission4(playerid)
  161. {
  162. SendClientMessageToAll(RED,"~Radio TRANSMISSION~");
  163. SendClientMessageToAll(GREEN,"If any Survivours is hearing this message");
  164. SendClientMessageToAll(GREEN,"Please go to ___Grove Street___ for further assisstance");
  165. SendClientMessageToAll(GREEN,"Umbrella Corp had setup their for survivors");
  166. SendClientMessageToAll(GREEN,"We have Food and Medical Service");
  167. SendClientMessageToAll(GREEN,"Please be safe while arriving here or zombies will hunt you down.");
  168. return 1;
  169. }
  170.  
  171. public TransMission5(playerid)
  172. {
  173. SendClientMessageToAll(RED,"~Radio TRANSMISSION~");
  174. SendClientMessageToAll(GREEN,"If any Survivours is hearing this message");
  175. SendClientMessageToAll(GREEN,"Please go to ___Rodeo___ for further assisstance");
  176. SendClientMessageToAll(GREEN,"Umbrella Corp had setup their for survivors");
  177. SendClientMessageToAll(GREEN,"We have Food and Medical Service");
  178. SendClientMessageToAll(GREEN,"Please be safe while arriving here or zombies will hunt you down.");
  179. return 1;
  180. }
  181.  
  182. public TransMission6(playerid)
  183. {
  184. SendClientMessageToAll(RED,"~Radio TRANSMISSION~");
  185. SendClientMessageToAll(GREEN,"If any Survivours is hearing this message");
  186. SendClientMessageToAll(GREEN,"Please go to ___Military Secret base___ for further assisstance");
  187. SendClientMessageToAll(GREEN,"Umbrella Corp had setup their for survivors");
  188. SendClientMessageToAll(GREEN,"We have Food and Medical Service");
  189. SendClientMessageToAll(GREEN,"Please be safe while arriving here or zombies will hunt you down.");
  190. return 1;
  191. }
  192.  
  193. public TransMission7(playerid)
  194. {
  195. SendClientMessageToAll(RED,"~Radio TRANSMISSION~");
  196. SendClientMessageToAll(GREEN,"If any Survivours is hearing this message");
  197. SendClientMessageToAll(GREEN,"Please go to ___Vinewood___ for further assisstance");
  198. SendClientMessageToAll(GREEN,"Umbrella Corp had setup their for survivors");
  199. SendClientMessageToAll(GREEN,"We have Food and Medical Service");
  200. SendClientMessageToAll(GREEN,"Please be safe while arriving here or zombies will hunt you down.");
  201. return 1;
  202. }
  203.  
  204. public TransMission8(playerid)
  205. {
  206. SendClientMessageToAll(RED,"~Radio TRANSMISSION~");
  207. SendClientMessageToAll(GREEN,"If any Survivours is hearing this message");
  208. SendClientMessageToAll(GREEN,"Please go to ___Gate C___ for further assisstance");
  209. SendClientMessageToAll(GREEN,"Umbrella Corp had setup their for survivors");
  210. SendClientMessageToAll(GREEN,"We have Food and Medical Service");
  211. SendClientMessageToAll(GREEN,"Please be safe while arriving here or zombies will hunt you down.");
  212. return 1;
  213. }
  214.  
  215. public TransMission9(playerid)
  216. {
  217. SendClientMessageToAll(RED,"~Radio TRANSMISSION~");
  218. SendClientMessageToAll(GREEN,"If any Survivours is hearing this message");
  219. SendClientMessageToAll(GREEN,"Please go to ___D12 Crash Site___ for further assisstance");
  220. SendClientMessageToAll(GREEN,"Umbrella Corp had setup their for survivors");
  221. SendClientMessageToAll(GREEN,"We have Food and Medical Service");
  222. SendClientMessageToAll(GREEN,"Please be safe while arriving here or zombies will hunt you down.");
  223. return 1;
  224. }
  225.  
  226. //on player spawn
  227. public OnPlayerSpawn(playerid)
  228. {
  229. // this is a message so that people will do /audiomsg after seeing this msg. for not viewing these audiostream links.
  230. SendClientMessageToAll(RED,"PLEASE I WILL SUGGEST OFF AUDIOMESSAGE USE /audiomsg FOR BETTER GAMEPLAY. GOOD LUCK");
  231. return 1;
  232. }
  233.  
  234. // playing sound 1 by 1
  235. public PlaySound(playerid)
  236. {
  237. PlayAudioStreamForPlayer(playerid,"http://k003.kiwi6.com/hotlink/blb3aqymb1/Glen_park.mp3");
  238. return 1;
  239. }
  240.  
  241. public PlaySound1(playerid)
  242. {
  243. PlayAudioStreamForPlayer(playerid,"http://k003.kiwi6.com/hotlink/346l57lq9m/Santa_beacg.mp3");
  244. return 1;
  245. }
  246.  
  247. public PlaySound2(playerid)
  248. {
  249. PlayAudioStreamForPlayer(playerid,"http://k003.kiwi6.com/hotlink/nqc1mpl4qe/Unity.mp3");
  250. return 1;
  251. }
  252.  
  253. public PlaySound3(playerid)
  254. {
  255. PlayAudioStreamForPlayer(playerid,"http://k003.kiwi6.com/hotlink/kirjuuvsky/Marker.mp3");
  256. return 1;
  257. }
  258.  
  259. public PlaySound4(playerid)
  260. {
  261. PlayAudioStreamForPlayer(playerid,"http://k003.kiwi6.com/hotlink/2fxrypdl9j/Grove.mp3");
  262. return 1;
  263. }
  264.  
  265. public PlaySound5(playerid)
  266. {
  267. PlayAudioStreamForPlayer(playerid,"http://k003.kiwi6.com/hotlink/0f4psm4ncu/Rodeo.mp3");
  268. return 1;
  269. }
  270.  
  271. public PlaySound6(playerid)
  272. {
  273. PlayAudioStreamForPlayer(playerid,"http://k003.kiwi6.com/hotlink/urrtvuftnd/Secret_base.mp3");
  274. return 1;
  275. }
  276.  
  277. public PlaySound7(playerid)
  278. {
  279. PlayAudioStreamForPlayer(playerid,"http://k003.kiwi6.com/hotlink/55fy49xlr5/Vinewood.mp3");
  280. return 1;
  281. }
  282.  
  283. public PlaySound8(playerid)
  284. {
  285. PlayAudioStreamForPlayer(playerid,"http://k003.kiwi6.com/hotlink/ppm8ehtlwu/Gate_c.mp3");
  286. return 1;
  287. }
  288.  
  289. public PlaySound9(playerid)
  290. {
  291. PlayAudioStreamForPlayer(playerid,"http://k003.kiwi6.com/hotlink/wpk02p7f3f/D12.mp3");
  292. return 1;
  293. }
  294.  
  295. //Pulibc
  296. public ShowCP(playerid)
  297. {
  298. SetPlayerCheckpoint(playerid, 1969.99, -1199.42, 25.64, 50.0); //CheckPoint 1
  299. return 1;
  300. }
  301.  
  302. public ShowCP1(playerid)
  303. {
  304. SetPlayerCheckpoint(playerid, 218.01, -1823.82, 40.06, 50.0); //CheckPoint 2
  305. return 1;
  306. }
  307.  
  308. public ShowCP2(playerid)
  309. {
  310. SetPlayerCheckpoint(playerid, 1774.26, -1939.52, 13.56, 50.0); //CheckPoint 3
  311. return 1;
  312. }
  313.  
  314. public ShowCP3(playerid)
  315. {
  316. SetPlayerCheckpoint(playerid, 776.31, -1353.71, 13.54, 50.0); //CheckPoint 4
  317. return 1;
  318. }
  319.  
  320. public ShowCP4(playerid)
  321. {
  322. SetPlayerCheckpoint(playerid, 2501.05, -1666.91, 13.36, 50.0); //CheckPoint 5
  323. return 1;
  324. }
  325.  
  326. public ShowCP5(playerid)
  327. {
  328. SetPlayerCheckpoint(playerid, 535.44, -1477.09, 14.54, 50.0); //CheckPoint 6
  329. return 1;
  330. }
  331.  
  332. public ShowCP6(playerid)
  333. {
  334. SetPlayerCheckpoint(playerid, 2709.97, -1065.97, 75.37, 50.0); //CheckPoint 7
  335. return 1;
  336. }
  337.  
  338. public ShowCP7(playerid)
  339. {
  340. SetPlayerCheckpoint(playerid, 1005.63, -940.09, 42.18, 50.0); //CheckPoint 8
  341. return 1;
  342. }
  343.  
  344. public ShowCP8(playerid)
  345. {
  346. SetPlayerCheckpoint(playerid, 1175.52, -2035.39, 69.14, 50.0); //CheckPoint 9
  347. return 1;
  348. }
  349.  
  350. public ShowCP9(playerid)
  351. {
  352. SetPlayerCheckpoint(playerid, 2434.31, -1502.13, 23.83, 50.0); //CheckPoint 10
  353. return 1;
  354. }
  355.  
  356. public OnPlayerEnterCheckpoint(playerid)
  357. {
  358. if(gTeam[playerid] == TEAM_HUMAN) {
  359. GameTextForPlayer(playerid,"~r~ You have cleared the checkpoint.",6000,4);
  360. SendClientMessageToAll(PURPLE,"You have been given 5000$");
  361. SendClientMessageToAll(PURPLE,"You have been given Medical Attention.");
  362. SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
  363. SetPlayerHealth(playerid, 100);
  364. DisablePlayerCheckpoint(playerid);
  365. GivePlayerMoney(playerid,5000);
  366. }
  367. if(gTeam[playerid] == TEAM_ZOMBIE) {
  368. GameTextForPlayer(playerid,"~g~ Fuck those survivors.",6000,4);
  369. }
  370. return 1;
  371. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement