Advertisement
Guest User

Bomb by Zayan

a guest
Jul 7th, 2013
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.90 KB | None | 0 0
  1. // Author: Zayan Imran
  2. // Copyright(c) - Author
  3.  
  4. #include <a_samp>
  5. #include <zcmd>
  6.  
  7. new Float:x, Float:y, Float:z, Float:ang;
  8. new Obj;
  9.  
  10. forward timer();
  11.  
  12. public OnFilterScriptInit()
  13. {
  14.         print("\n--------------------------------------");
  15.         print(" Bomb FS by Zayan Imran.");
  16.         print("--------------------------------------\n");
  17.         return 1;
  18. }
  19.  
  20. CMD:setbomb(playerid, params[])
  21. {
  22.         ClearAnimations(playerid);
  23.         ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  24.         GetPlayerPos(playerid, x, y, z);
  25.         GetPlayerFacingAngle(playerid, ang);
  26.         Obj = CreateObject(3052, x, y, z - 0.9, 0, 0, ang, 500);
  27.         SendClientMessage(playerid, -1, "The bomb is ready and will explode in 10 seconds! RUN AWAY!");
  28.         SetTimer("timer", 10000, false);
  29.         return 1;
  30. }
  31.  
  32. public timer()
  33. {
  34.         CreateExplosion(x, y, z, 6, 10);
  35.         DestroyObject(Obj);
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement