Guest User

Untitled

a guest
Nov 5th, 2010
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.72 KB | None | 0 0
  1. //the command
  2. COMMAND:airstrike ( playerid, params[] )
  3. {
  4.     if ( KillingSpree[playerid] < 5) return SendClientMessage ( playerid, 0xFFFFFFAA, "A requirement of 5 killstreaks is required to call for a airstrike." );
  5.     if(GetPVarInt(playerid,"CMDABUSE")>GetTickCount())return SendClientMessage(playerid,0xFF0000FF,"You Can Only Use This Command every 50 seconds.");
  6.         SetPVarInt(playerid,"CMDABUSE",GetTickCount()+50000);
  7.     new
  8.         Float:X,
  9.         Float:Y,
  10.         Float:Z
  11.         ;
  12.     GetPlayerPos ( playerid, X, Y, Z );
  13.     SetTimerEx ( "airStrike", 10000, 0, "fff", X, Y, Z );
  14.     SendClientMessage ( playerid, 0xFFFFFFAA, " Evacuate now! Airstrike will land in your current location in 10 seconds." );
  15.     return 1;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment