Simple Bomb System v2.0 - Countdown + Game Text For All


SUBMITTED BY: Guest

DATE: Oct. 19, 2013, 11:41 a.m.

FORMAT: Text only

SIZE: 7.4 kB

HITS: 2205

  1. /*
  2. ______________________________________________________________________
  3. | _ _ ________ |
  4. | ( \ ( \ ( _____ \ |
  5. | | | | | ______ | | \ \ |
  6. | | |____| | ( ___\ | | \ \ |
  7. | | ____ | \ \ (_) | | ) ) |
  8. | | | | | _ \ \ | | / / |
  9. | | ) | ) ( )__\ \ | |_____/ / |
  10. | |_/ |_/ \_______/ |_________/ |
  11. | |
  12. | [HSD] High Speed Drivers |
  13. | |
  14. | [HSD] Company Clan of Programmers, Scripters, and Mappers |
  15. |______________________________________________________________________|
  16. http://forum.sa-mp.com/member.php?u=211939
  17. Updated Date: 10/19/2013 (MM/DD/YYYY)
  18. Visit Me on SA-MP Forum for More Updates
  19. Let the Credits !
  20. • Super Fast System
  21. • [1] Command(s)
  22. • Fast Commands to Enable or Disable System
  23. • http://forum.sa-mp.com/member.php?u=211939 | Visit Me on SA-MP Forum |.
  24. ~ Do: ~
  25. - Must have Permission if you want to Share this on another Website.
  26. - etc.
  27. ~ Do Not: ~
  28. - Remove Credits.
  29. - Change Author Name / Information.
  30. - Stealing Filterscript.
  31. - No Permission but Sharing on another Website.
  32. - etc.
  33. [ Information ] :-
  34. Author: SAMProductions
  35. FilterScript Name: Simple Bomb System v2.0
  36. Updated Date: 10/19/2013 - (MM/DD/YYYY)
  37. Thanks To:
  38. SA-MP Team - a_samp
  39. ZeeX - zcmd
  40. You - For Supporting and Downloading
  41. and to Whoever i forgot to Mention
  42. -: [ End Information ]
  43. • Do not Remove the Credits.
  44. • Do not Change the Author Name / Information.
  45. • Do not Steal the Filterscript.
  46. • Disrespecting Any of These, You will Die.
  47. • Disrespecting Any of These, I'll Rape You.
  48. • Disrespecting Any of These, I'll Report You.
  49. • Thanks For Using, Enjoy :)
  50. //----------------------------------------------------------------------------// */
  51. #include <a_samp> // Credits: SA-MP Team
  52. #include <zcmd> // Credits: ZeeX
  53. new BombObject;
  54. new Float:x, Float:y, Float:z, Float:ang;
  55. public OnFilterScriptInit()
  56. {
  57. print("<|---------------------------[Loaded]---------------------------|>");
  58. print(" | Simple Bomb System v2.0 (/plantc4) Made By: SAMProductions |");
  59. print("<|---------------------------[Loaded]---------------------------|>");
  60. return 1;
  61. }
  62. public OnFilterScriptExit()
  63. {
  64. print("<|--------------------------[UnLoaded]--------------------------|>");
  65. print(" | Simple Bomb System v2.0 (/plantc4) Made By: SAMProductions |");
  66. print("<|--------------------------[UnLoaded]--------------------------|>");
  67. return 1;
  68. }
  69. CMD:plantc4(playerid, params[]) // COMMAND: plantc4(playerid, params[])
  70. {
  71. ClearAnimations(playerid);
  72. ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0); // Bomb Plant Animation
  73. GetPlayerPos(playerid, x, y, z);
  74. GetPlayerFacingAngle(playerid, ang);
  75. BombObject = CreateObject(3052, x, y, z - 0.9, 0, 0, ang, 500); // Bomb Object [3052]
  76. SetTimer("BombTimer", 16000, false); // 16000 = 16 Seconds (Change it if you want).
  77. SendClientMessage(playerid, -1, "{FF0000}<!> {EEEEEE}You've Planted a C4 ({FF0000}Exploding in: 15 Seconds{EEEEEE}), Go Far Away into the C4.");
  78. SetTimer("fifteen", 1000, 0);
  79. SetTimer("fourteen", 2000, 0);
  80. SetTimer("thirteen", 3000, 0);
  81. SetTimer("twelve", 4000, 0);
  82. SetTimer("eleven", 5000, 0);
  83. SetTimer("ten", 6000, 0);
  84. SetTimer("nine", 7000, 0);
  85. SetTimer("eight", 8000, 0);
  86. SetTimer("seven", 9000, 0);
  87. SetTimer("six", 10000, 0);
  88. SetTimer("five", 11000, 0);
  89. SetTimer("four", 12000, 0);
  90. SetTimer("three", 13000, 0);
  91. SetTimer("two", 14000, 0);
  92. SetTimer("one", 15000, 0);
  93. return 1;
  94. }
  95. forward PlaySoundForAll(soundid);
  96. public PlaySoundForAll(soundid)
  97. {
  98. for(new i; i<MAX_PLAYERS; i++)
  99. if(IsPlayerConnected(i))PlayerPlaySound(i,soundid, 0.0, 0.0, 0.0);
  100. }
  101. forward fifteen(playerid);
  102. public fifteen(playerid)
  103. {
  104. GameTextForAll("~g~15",2000,3);
  105. PlaySoundForAll(1138);
  106. return 1;
  107. }
  108. forward fourteen(playerid);
  109. public fourteen(playerid)
  110. {
  111. GameTextForAll("~g~14",2000,3);
  112. PlaySoundForAll(1138);
  113. return 1;
  114. }
  115. forward thirteen(playerid);
  116. public thirteen(playerid)
  117. {
  118. GameTextForAll("~g~13",2000,3);
  119. PlaySoundForAll(1138);
  120. return 1;
  121. }
  122. forward twelve(playerid);
  123. public twelve(playerid)
  124. {
  125. GameTextForAll("~g~12",2000,3);
  126. PlaySoundForAll(1138);
  127. return 1;
  128. }
  129. forward eleven(playerid);
  130. public eleven(playerid)
  131. {
  132. GameTextForAll("~g~11",2000,3);
  133. PlaySoundForAll(1138);
  134. return 1;
  135. }
  136. forward ten(playerid);
  137. public ten(playerid)
  138. {
  139. GameTextForAll("~g~10",2000,3);
  140. PlaySoundForAll(1138);
  141. return 1;
  142. }
  143. forward eight(playerid);
  144. public eight(playerid)
  145. {
  146. GameTextForAll("~g~9",2000,3);
  147. PlaySoundForAll(1138);
  148. return 1;
  149. }
  150. forward nine(playerid);
  151. public nine(playerid)
  152. {
  153. GameTextForAll("~g~8",2000,3);
  154. PlaySoundForAll(1138);
  155. return 1;
  156. }
  157. forward seven(playerid);
  158. public seven(playerid)
  159. {
  160. GameTextForAll("~g~7",2000,3);
  161. PlaySoundForAll(1138);
  162. return 1;
  163. }
  164. forward six(playerid);
  165. public six(playerid)
  166. {
  167. GameTextForAll("~g~6",2000,3);
  168. PlaySoundForAll(1138);
  169. return 1;
  170. }
  171. forward five(playerid);
  172. public five(playerid)
  173. {
  174. GameTextForAll("~g~5",2000,3);
  175. PlaySoundForAll(1138);
  176. return 1;
  177. }
  178. forward four(playerid);
  179. public four(playerid)
  180. {
  181. GameTextForAll("~y~4",2000,3);
  182. PlaySoundForAll(1138);
  183. return 1;
  184. }
  185. forward three(playerid);
  186. public three(playerid)
  187. {
  188. GameTextForAll("~p~3",2000,3);
  189. PlaySoundForAll(1138);
  190. return 1;
  191. }
  192. forward two(playerid);
  193. public two(playerid)
  194. {
  195. GameTextForAll("~b~2",2000,3);
  196. PlaySoundForAll(1138);
  197. return 1;
  198. }
  199. forward one(playerid);
  200. public one(playerid)
  201. {
  202. GameTextForAll("~w~1",2000,3);
  203. PlaySoundForAll(1138);
  204. return 1;
  205. }
  206. forward BombTimer();
  207. public BombTimer() // Bomb Timer [16 Seconds] = Explode !
  208. {
  209. GameTextForAll("~b~Explode (Boom) !",2000,3);
  210. CreateExplosion(x, y, z, 6, 10);
  211. DestroyObject(BombObject);
  212. }

comments powered by Disqus