[FilterScript] Blizzard Explosion
#1

Hello I Just Created New Filterscripts " Blizzard Explosion "

What Is This ?

This Is Blizzard For Freeroam Server i make this cause my server is freeroam

Command

Auto Move

/boomboom - will create the rock at the near you place then you must run and the rock follow you, then it will explode

Manual Move

/air - ill create the rock, but you must use /startair to start the explosion

/startair - ill move the rock to your place and wait 3 second to explode


Download ?

its just simple Filerscripts, so i give it to you using pastebin and Pawn

pawn Код:
#include <a_samp>
#include <streamer>
#include <zcmd>

new rocks1[MAX_PLAYERS];
new rocks2[MAX_PLAYERS];
new rocks3[MAX_PLAYERS];
new rocks4[MAX_PLAYERS];
new rocks5[MAX_PLAYERS];
new rocks6[MAX_PLAYERS];

new ModActived[MAX_PLAYERS];

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    return 1;
}


CMD:boomboom(playerid,params[])
{
 if(ModActived[playerid] == 1) return SendClientMessage(playerid, -1, "ERROR: You Already Used Blizzard Explosion!");
 new Float:x,Float:y,Float:z;
 GetPlayerPos(playerid,x,y,z);
 ModActived[playerid] = 1;
 rocks1[playerid] = CreateDynamicObject(1305, x+1,y+1,z+3, 0.000000, 0.000000, 0.000000);
 rocks2[playerid] = CreateDynamicObject(1305, x-1,y+2,z+3, 0.000000, 0.000000, 0.000000);
 rocks3[playerid] = CreateDynamicObject(1305, x+1,y-1,z+3, 0.000000, 0.000000, 0.000000);
 rocks4[playerid] = CreateDynamicObject(1305, x-1,y-2,z+3, 0.000000, 0.000000, 0.000000);
 rocks5[playerid] = CreateDynamicObject(1305, x+1,y-1,z+3, 0.000000, 0.000000, 0.000000);
 rocks6[playerid] = CreateDynamicObject(1305, x+1,y-2,z+3, 0.000000, 0.000000, 0.000000);
 SetTimerEx("BlizzardOn", 5000, false, "i", playerid);
 return 1;
}

CMD:air(playerid,params[])
{
 if(ModActived[playerid] == 1) return SendClientMessage(playerid, -1, "ERROR: You Already Put The Target use /startair to start the airstrike");
 new Float:x,Float:y,Float:z;
 GetPlayerPos(playerid,x,y,z);
 ModActived[playerid] = 1;
 rocks1[playerid] = CreateDynamicObject(1305, x+1,y+1,z+3, 0.000000, 0.000000, 0.000000);
 rocks2[playerid] = CreateDynamicObject(1305, x-1,y+2,z+3, 0.000000, 0.000000, 0.000000);
 rocks3[playerid] = CreateDynamicObject(1305, x+1,y-1,z+3, 0.000000, 0.000000, 0.000000);
 rocks4[playerid] = CreateDynamicObject(1305, x-1,y-2,z+3, 0.000000, 0.000000, 0.000000);
 rocks5[playerid] = CreateDynamicObject(1305, x+1,y-1,z+3, 0.000000, 0.000000, 0.000000);
 rocks6[playerid] = CreateDynamicObject(1305, x+1,y-2,z+3, 0.000000, 0.000000, 0.000000);
 SendClientMessage(playerid, -1, "use /startair to start the rock blizzard");
 return 1;
}

CMD:startair(playerid,params[])
{
 if(ModActived[playerid] == 0) return SendClientMessage(playerid, -1, "ERROR: You must use /air to start air");
 SetTimerEx("BlizzardOns", 500, false, "i", playerid);
 return 1;
}



forward BlizzardOn(playerid);
public BlizzardOn(playerid)
{
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid,x,y,z);
    MoveDynamicObject(rocks1[playerid], x+1,y+1,z, 30.00);
    MoveDynamicObject(rocks2[playerid], x-1,y+2,z, 30.00);
    MoveDynamicObject(rocks3[playerid], x+1,y-1,z, 30.00);
    MoveDynamicObject(rocks4[playerid], x-1,y-2,z, 30.00);
    MoveDynamicObject(rocks5[playerid], x+1,y-1,z, 30.00);
    MoveDynamicObject(rocks6[playerid], x+1,y-2,z, 30.00);
    SetTimerEx("Explode", 2000, false, "i", playerid);
    return 1;
}

forward BlizzardOns(playerid);
public BlizzardOns(playerid)
{
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid,x,y,z);
    MoveDynamicObject(rocks1[playerid], x+1,y+1,z, 50.00);
    MoveDynamicObject(rocks2[playerid], x-1,y+2,z, 50.00);
    MoveDynamicObject(rocks3[playerid], x+1,y-1,z, 50.00);
    MoveDynamicObject(rocks4[playerid], x-1,y-2,z, 50.00);
    MoveDynamicObject(rocks5[playerid], x+1,y-1,z, 50.00);
    MoveDynamicObject(rocks6[playerid], x+1,y-2,z, 50.00);
    SetTimerEx("Explodes", 2000, false, "i", playerid);
    return 1;
}

forward Explode(playerid);
public Explode(playerid)
{
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid,x,y,z);
    CreateExplosion(x+1, y+1, z-5, 6, 10.0);
    CreateExplosion(x+1, y+2, z-5, 6, 10.0);
    CreateExplosion(x+1, y-1, z-5, 6, 10.0);
    CreateExplosion(x+1, y-2, z-5, 6, 10.0);
    CreateExplosion(x+1, y-1, z-5, 6, 10.0);
    CreateExplosion(x+1, y-2, z-5, 6, 10.0);
    SetTimerEx("DestroyBlizzard", 500, false, "i", playerid);
    return 1;
}

forward Explodes(playerid);
public Explodes(playerid)
{
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid,x,y,z);
    CreateExplosion(x+1, y+1, z-5, 6, 10.0);
    CreateExplosion(x+1, y+2, z-5, 6, 10.0);
    CreateExplosion(x+1, y-1, z-5, 6, 10.0);
    CreateExplosion(x+1, y-2, z-5, 6, 10.0);
    CreateExplosion(x+1, y-1, z-5, 6, 10.0);
    CreateExplosion(x+1, y-2, z-5, 6, 10.0);
    CreateExplosion(x+1, y-2, z-5, 6, 10.0);
    CreateExplosion(x+1, y-2, z-5, 6, 10.0);
    CreateExplosion(x+1, y-2, z-5, 6, 10.0);
    SetTimerEx("DestroyBlizzards", 1000, false, "i", playerid);
    return 1;
}



forward DestroyBlizzard(playerid);
public DestroyBlizzard(playerid)
{
    DestroyDynamicObject(rocks1[playerid]);
    DestroyDynamicObject(rocks2[playerid]);
    DestroyDynamicObject(rocks3[playerid]);
    DestroyDynamicObject(rocks4[playerid]);
    DestroyDynamicObject(rocks5[playerid]);
    DestroyDynamicObject(rocks6[playerid]);
    ModActived[playerid] = 0;
    return 1;
}

forward DestroyBlizzards(playerid);
public DestroyBlizzards(playerid)
{
    DestroyDynamicObject(rocks1[playerid]);
    DestroyDynamicObject(rocks2[playerid]);
    DestroyDynamicObject(rocks3[playerid]);
    DestroyDynamicObject(rocks4[playerid]);
    DestroyDynamicObject(rocks5[playerid]);
    DestroyDynamicObject(rocks6[playerid]);
    ModActived[playerid] = 0;
    return 1;
}

public OnPlayerConnect(playerid)
{
 ModActived[playerid] = 0;
 DestroyDynamicObject(rocks1[playerid]);
 DestroyDynamicObject(rocks2[playerid]);
 DestroyDynamicObject(rocks3[playerid]);
 DestroyDynamicObject(rocks4[playerid]);
 DestroyDynamicObject(rocks5[playerid]);
 DestroyDynamicObject(rocks6[playerid]);
 return 1;
}

public OnPlayerDisconnect(playerid,reason)
{
 ModActived[playerid] = 0;
 DestroyDynamicObject(rocks1[playerid]);
 DestroyDynamicObject(rocks2[playerid]);
 DestroyDynamicObject(rocks3[playerid]);
 DestroyDynamicObject(rocks4[playerid]);
 DestroyDynamicObject(rocks5[playerid]);
 DestroyDynamicObject(rocks6[playerid]);
 return 1;
}
PASTEBIN
Reply
#2

Screenes please(
Reply
#3

Quote:
Originally Posted by TraniLurese
Посмотреть сообщение
Screenes please(
okay ill update it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)