Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //the command
- COMMAND:airstrike ( playerid, params[] )
- {
- if ( KillingSpree[playerid] < 5) return SendClientMessage ( playerid, 0xFFFFFFAA, "A requirement of 5 killstreaks is required to call for a airstrike." );
- if(GetPVarInt(playerid,"CMDABUSE")>GetTickCount())return SendClientMessage(playerid,0xFF0000FF,"You Can Only Use This Command every 50 seconds.");
- SetPVarInt(playerid,"CMDABUSE",GetTickCount()+50000);
- new
- Float:X,
- Float:Y,
- Float:Z
- ;
- GetPlayerPos ( playerid, X, Y, Z );
- SetTimerEx ( "airStrike", 10000, 0, "fff", X, Y, Z );
- SendClientMessage ( playerid, 0xFFFFFFAA, " Evacuate now! Airstrike will land in your current location in 10 seconds." );
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment