Guest User

Plant Car Bomb

a guest
Nov 9th, 2013
342
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.89 KB | None | 0 0
  1. // Plant Car Bomb
  2. // Made By Avi Raj
  3. // Thanks for Using it.
  4.  
  5. #include <a_samp>
  6. #include <zcmd>
  7.  
  8. forward Explode(playerid);
  9.  
  10. public OnFilterScriptInit()
  11. {
  12.     print("\n--------------------------------------");
  13.     print(" Plant Car Bomb - Loaded                ");
  14.     print("--------------------------------------\n");
  15.     return 1;
  16. }
  17.  
  18. CMD:plantbomb(playerid, params[])
  19. {
  20.     if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,0x00FF00AA,"You need to be in a Car to Plant Bomb");
  21.     {
  22.         SendClientMessage(playerid,0x00FF00AA,"You Have Planted the Bomb, Dont Leave the Car.");
  23.         GameTextForPlayer(playerid, "Bomb Planted", 3000, 1);
  24.         SetTimerEx("Explode",5000,0,"i",playerid);
  25.         return 1;
  26.     }
  27. }
  28.  
  29. public Explode(playerid)
  30. {
  31.     new Float:x, Float:y, Float:z;
  32.     GetPlayerPos(playerid, x, y, z);
  33.     CreateExplosion(x, y, z, 2, 10.0);
  34.     return 1;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment