Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.92 KB | None | 0 0
  1. //under forwards
  2. forward airstrike();
  3.  
  4. //command
  5. if (strcmp("/airstrike", cmdtext, true, 5) == 0)
  6.     {
  7.         if(KillingSpree[playerid] < 5) return SendClientMessage(playerid,COLOR_YELLOW,"You Need A Kill Streak of 5 To Call The Airstrike!");
  8.         KillingSpree[playerid]-5;
  9.         if(GetPVarInt(playerid,"CMDABUSE")>GetTickCount())return SendClientMessage(playerid,0xFF0000FF,"You Can Only Use This Command every 50 seconds.");
  10.         SetPVarInt(playerid,"CMDABUSE",GetTickCount()+50000);
  11.         SetTimerEx("airstrike", 10000, false, "d", playerid);
  12.         SendClientMessage(playerid, COLOR_RED,"Airstrike called, please leave the area before the airstrike arrives");
  13.         new Float:x, Float:y, Float:z ;
  14.         GetPlayerPos( playerid, Float:x, Float:y, Float:z );
  15.         CreateExplosion(x,y,z,7,10);
  16.         CreateExplosion(x,y,z+3,7,10);
  17.         CreateExplosion(x,y,z+6,7,10);
  18.         CreateExplosion(x,y,z+9,7,10);
  19.         CreateExplosion(x,y,z+12,7,10);
  20.         CreateExplosion(x,y,z+15, 7, 10);
  21.         CreateExplosion(x,y,z+18,7,10);
  22.         CreateExplosion(x,y,z+21,7,10);
  23.         CreateExplosion(x,y+3,z+21,7,10);
  24.         CreateExplosion(x,y-3,z+21,7,10);
  25.         CreateExplosion(x+3,y,z+21,7,10);
  26.         CreateExplosion(x-3,y,z+21,7,10);
  27.         CreateExplosion(x,y,z+7,6,5);
  28.         CreateExplosion(x+3,y,z+7,6,5);
  29.         CreateExplosion(x+2,y,z+7,6,5);
  30.         CreateExplosion(x+4,y,z+7,6,5);
  31.         CreateExplosion(x+6,y,z+7,6,5);
  32.         CreateExplosion(x+8,y,z+7,6,5);
  33.         CreateExplosion(x+10,y,z+7,6,5);
  34.         CreateExplosion(x+12,y,z+7,6,5);
  35.         CreateExplosion(x+14,y,z+7,6,5);
  36.         CreateExplosion(x+16,y,z+7,6,5);
  37.         CreateExplosion(x+18,y,z+7,6,5);
  38.         CreateExplosion(x+20,y,z+7,6,5);
  39.         CreateExplosion(x+22,y,z+7,6,5);
  40.         CreateExplosion(x+24,y,z+7,6,5);
  41.         CreateExplosion(x+26,y,z+7,6,5);
  42.         CreateExplosion(x+28,y,z+7,6,5);
  43.         CreateExplosion(x+30,y,z+7,6,5);
  44.         CreateExplosion(x+32,y,z+7,6,5);
  45.         CreateExplosion(x,y,z+7,6,5);
  46.         CreateExplosion(x+3,y,z+2,5,7);
  47.         CreateExplosion(x+2,y,z+2,5,7);
  48.         CreateExplosion(x+4,y,z+2,5,7);
  49.         CreateExplosion(x+6,y,z+2,5,7);
  50.         CreateExplosion(x+8,y,z+2,5,7);
  51.         CreateExplosion(x+10,y,z+2,5,7);
  52.         CreateExplosion(x+12,y,z+2,5,7);
  53.         CreateExplosion(x+14,y,z+2,5,7);
  54.         CreateExplosion(x+16,y,z+2,5,7);
  55.         CreateExplosion(x+18,y,z+2,5,7);
  56.         CreateExplosion(x+20,y,z+2,5,7);
  57.         CreateExplosion(x+22,y,z+2,5,7);
  58.         CreateExplosion(x+24,y,z+2,5,7);
  59.         CreateExplosion(x+26,y,z+2,5,7);
  60.         CreateExplosion(x+28,y,z+2,5,7);
  61.         CreateExplosion(x+30,y,z+2,5,7);
  62.         CreateExplosion(x+32,y,z+2,5,7);
  63.         return CreateExplosion(Float:x-20, Float:y-20, Float:z, 8,10.0);
  64.  
  65. //bottom of the script
  66. public airstrike()
  67. {
  68.  return 1;
  69. }
  70.  
  71.  
  72. //no errors or anything it just explodes ontop of you and the timer doesn't work.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement