SAMProductions

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

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