Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new Andromeda;
- new Missile;
- new Missile2;
- new Missile3;
- new Missile4;
- new Missile5;
- new Test;
- new Test2;
- new Test3;
- new Test4;
- new Test5;
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(strcmp(cmdtext, "/airstrike", true) == 0)
- {
- new Float:x, Float:y, Float:z, Float:rX, Float:rY, Float:rZ;
- {
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE);
- GetPlayerPos(playerid, x, y, z);
- Test = CreateObject(2061, x, y, z-2, rX, rY, rZ);
- Test2 = CreateObject(2061, x, y+20, z-2, rX, rY, rZ);
- Test3 = CreateObject(2061, x, y-20, z-2, rX, rY, rZ);
- Test4 = CreateObject(2061, x+20, y, z-2, rX, rY, rZ);
- Test5 = CreateObject(2061, x-20, y, z-2, rX, rY, rZ);
- Andromeda = CreateObject(1683, x, y+900, z+30, rX, rY, 270);
- GetObjectPos(Andromeda, x, y, z);
- MoveObject(Andromeda, x, y-1800, z, 15);
- SetTimerEx("ResetCell", 5000, 0, "i", playerid);
- SetTimerEx("AndrBomb", 20000, 0, "i", playerid);
- SetTimerEx("AndrBomb2", 21000, 0, "i", playerid);
- SetTimerEx("AndrBomb3", 22000, 0, "i", playerid);
- SetTimerEx("AndrBomb4", 23000, 0, "i", playerid);
- SetTimerEx("AndrBomb5", 23000, 0, "i", playerid);
- SendClientMessage(playerid, RED, "[WARNING!]Incoming Airstrike! You Have 20 Secs To Leave The Area!");
- SendClientMessage(playerid, RED, "[ATT]:Cost 1000 Fuel To Prepare This Airstrike!");
- }
- return 1;
- }
- forward ResetCell(playerid);
- public ResetCell(playerid)
- {
- new Float:x, Float:y, Float:z;
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_STOPUSECELLPHONE);
- GetPlayerPos(playerid, x, y, z);
- SetPlayerCheckpoint(playerid, x, y, z, 2);
- return 1;
- }
- forward AndrBomb(playerid);
- public AndrBomb(playerid)
- {
- new Float:x, Float:y, Float:z, Float:rZ;
- GetObjectPos(Test, x, y, z);
- Missile = CreateObject(3790, x, y, z+30, 90, 90, rZ);
- GetObjectPos(Test, x, y, z);
- MoveObject(Missile, x, y+3, z, 20);
- SetTimerEx("MissileExplode", 1500, 0, "i", playerid);
- return 1;
- }
- forward AndrBomb2(playerid);
- public AndrBomb2(playerid)
- {
- new Float:x, Float:y, Float:z, Float:rZ;
- GetObjectPos(Test2, x, y, z);
- Missile2 = CreateObject(3790, x, y, z+30, 90, 90, rZ);
- GetObjectPos(Test2, x, y, z);
- MoveObject(Missile2, x, y+3, z, 20);
- SetTimerEx("MissileExplode2", 1500, 0, "i", playerid);
- return 1;
- }
- forward AndrBomb3(playerid);
- public AndrBomb3(playerid)
- {
- new Float:x, Float:y, Float:z, Float:rZ;
- GetObjectPos(Test3, x, y, z);
- Missile3 = CreateObject(3790, x, y, z+30, 90, 90, rZ);
- GetObjectPos(Test3, x, y, z);
- MoveObject(Missile3, x, y+3, z, 20);
- SetTimerEx("MissileExplode3", 1500, 0, "i", playerid);
- return 1;
- }
- forward AndrBomb4(playerid);
- public AndrBomb4(playerid)
- {
- new Float:x, Float:y, Float:z, Float:rZ;
- GetObjectPos(Test4, x, y, z);
- Missile4 = CreateObject(3790, x, y, z+30, 90, 90, rZ);
- GetObjectPos(Test4, x, y, z);
- MoveObject(Missile4, x, y+3, z, 20);
- SetTimerEx("MissileExplode4", 1500, 0, "i", playerid);
- return 1;
- }
- forward AndrBomb5(playerid);
- public AndrBomb5(playerid)
- {
- new Float:x, Float:y, Float:z, Float:rZ;
- GetObjectPos(Test5, x, y, z);
- Missile5 = CreateObject(3790, x, y, z+30, 90, 90, rZ);
- GetObjectPos(Test5, x, y, z);
- MoveObject(Missile5, x, y+3, z, 20);
- SetTimerEx("MissileExplode5", 1500, 0, "i", playerid);
- return 1;
- }
- forward MissileExplode(playerid);
- public MissileExplode(playerid)
- {
- new Float:x, Float:y, Float:z;
- GetObjectPos(Missile, x, y, z);
- CreateExplosion(x, y+5, z, 7, 5);
- CreateExplosion(x, y-5, z, 7, 5);
- CreateExplosion(x+5, y, z, 7, 5);
- CreateExplosion(x-5, y, z, 7, 5);
- DestroyObject(Missile);
- DestroyObject(Test);
- DisablePlayerCheckpoint(playerid);
- SetTimerEx("DestroyPlane", 30000, 0, "i", playerid);
- return 1;
- }
- forward MissileExplode2(playerid);
- public MissileExplode2(playerid)
- {
- new Float:x, Float:y, Float:z;
- GetObjectPos(Missile2, x, y, z);
- CreateExplosion(x, y+5, z, 7, 5);
- CreateExplosion(x, y-5, z, 7, 5);
- CreateExplosion(x+5, y, z, 7, 5);
- CreateExplosion(x-5, y, z, 7, 5);
- DestroyObject(Missile2);
- DestroyObject(Test2);
- DisablePlayerCheckpoint(playerid);
- return 1;
- }
- forward MissileExplode3(playerid);
- public MissileExplode3(playerid)
- {
- new Float:x, Float:y, Float:z;
- GetObjectPos(Missile3, x, y, z);
- CreateExplosion(x, y+5, z, 7, 5);
- CreateExplosion(x, y-5, z, 7, 5);
- CreateExplosion(x+5, y, z, 7, 5);
- CreateExplosion(x-5, y, z, 7, 5);
- DestroyObject(Missile3);
- DestroyObject(Test3);
- DisablePlayerCheckpoint(playerid);
- return 1;
- }
- forward MissileExplode4(playerid);
- public MissileExplode4(playerid)
- {
- new Float:x, Float:y, Float:z;
- GetObjectPos(Missile4, x, y, z);
- CreateExplosion(x, y+5, z, 7, 5);
- CreateExplosion(x, y-5, z, 7, 5);
- CreateExplosion(x+5, y, z, 7, 5);
- CreateExplosion(x-5, y, z, 7, 5);
- DestroyObject(Missile4);
- DestroyObject(Test4);
- DisablePlayerCheckpoint(playerid);
- return 1;
- }
- forward MissileExplode5(playerid);
- public MissileExplode5(playerid)
- {
- new Float:x, Float:y, Float:z;
- GetObjectPos(Missile5, x, y, z);
- CreateExplosion(x, y+5, z, 7, 5);
- CreateExplosion(x, y-5, z, 7, 5);
- CreateExplosion(x+5, y, z, 7, 5);
- CreateExplosion(x-5, y, z, 7, 5);
- DestroyObject(Missile5);
- DestroyObject(Test5);
- DisablePlayerCheckpoint(playerid);
- return 1;
- }
- forward DestroyPlane(playerid);
- public DestroyPlane(playerid)
- {
- DestroyObject(Andromeda);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement