SAMProductions

[10/18/2013] - SA-MP (FilterScript): [SBSys-v1.0] - Simple B

Oct 18th, 2013
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 4.10 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/18/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 v1.0
  47. Updated Date: 10/18/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 (/plantc4) Made By: SAMProductions |");
  84.     print("<|------------------------[Loaded]------------------------|>");
  85.     return 1;
  86. }
  87.  
  88. public OnFilterScriptExit()
  89. {
  90.     print("<|-----------------------[UnLoaded]-----------------------|>");
  91.     print(" | Simple Bomb System (/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", 15000, false); // 15000 = 15 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.     return 1;
  106. }
  107.  
  108. forward BombTimer();
  109. public BombTimer() // Bomb Timer [15 Seconds] = Explode !
  110. {
  111.     CreateExplosion(x, y, z, 6, 10);
  112.     DestroyObject(BombObject);
  113. }
Advertisement
Add Comment
Please, Sign In to add comment