I done this lastnight Im only showing you a example of my first fire mission .. like argonath but this is just a command and destroyfire1 dont work.. so you know this is mission 1 with 13 fires and explosions
This fire is located near the beach at the motel closes to the airport on the road that goes toward flint county
Код:
new Fire1;
new Firetimer1;
if (strcmp("/fire1", cmdtext, true, 10) == 0)
{
Fire1 = CreateDynamicObject(3461,990.44689941,-1824.21545410,16.67247391,0,0,0);
Fire1 = CreateDynamicObject(3461,979.82177734,-1821.27954102,16.67247391,0,0,0);
Fire1 = CreateDynamicObject(3461,967.81268311,-1818.54907227,16.67247391,0,0,0);
Fire1 = CreateDynamicObject(3461,953.63104248,-1815.04870605,16.67247391,0,0,0);
Fire1 = CreateDynamicObject(3461,959.62805176,-1805.61254883,11.79747581,0,0,0);
Fire1 = CreateDynamicObject(3461,969.63574219,-1806.59033203,11.79747581,0,0,0);
Fire1 = CreateDynamicObject(3461,981.70898438,-1809.00341797,11.79747581,0,0,0);
Fire1 = CreateDynamicObject(3461,993.74475098,-1812.03369141,11.79747581,0,0,0);
Fire1 = CreateDynamicObject(3461,998.74938965,-1824.42443848,11.27248383,0,0,0);
Fire1 = CreateDynamicObject(3461,988.29907227,-1832.22338867,10.87248993,0,0,0);
Fire1 = CreateDynamicObject(3461,977.87121582,-1829.84472656,10.82249069,0,0,0);
Fire1 = CreateDynamicObject(3461,966.53833008,-1825.62084961,10.82249069,0,0,0);
Fire1 = CreateDynamicObject(3461,954.86706543,-1823.16162109,10.82249069,0,0,0);
Firetimer1 = SetTimer("MEXP1",5000,true);
return 1;
}
if (strcmp("/destroyfire1", cmdtext, true, 10) == 0)
{
DestroyDynamicObject(Fire1);// Just a note this dont work so dont bother using it heh
KillTimer(Firetimer1);
return 1;
}
return 0;
}
forward MEXP1(playerid);
public MEXP1(playerid)
{
if(IsPlayerInRangeOfPoint(playerid,5.0 ,990.44689941,-1824.21545410,16.67247391))
{
SendClientMessage(playerid, BLUE, "Keep Spraying you're Killing the source");
}
else
{
CreateExplosion(990.44689941,-1824.21545410,16.67247391,2,10.0);
}
if(IsPlayerInRangeOfPoint(playerid,5.0,979.82177734,-1821.27954102,16.67247391))
{
SendClientMessage(playerid, BLUE, "Keep Spraying you're Killing the source");
}
else
{
CreateExplosion(979.82177734,-1821.27954102,16.67247391,2,10.0);
}
if(IsPlayerInRangeOfPoint(playerid,5.0,967.81268311,-1818.54907227,16.67247391))
{
SendClientMessage(playerid, BLUE, "Keep Spraying you're Killing the source");
}
else
{
CreateExplosion(967.81268311,-1818.54907227,16.67247391,2,10.0);
}
if(IsPlayerInRangeOfPoint(playerid,5.0,953.63104248,-1815.04870605,16.67247391))
{
SendClientMessage(playerid, BLUE, "Keep Spraying you're Killing the source");
}
else
{
CreateExplosion(953.63104248,-1815.04870605,16.67247391,2,10.0);
}
if(IsPlayerInRangeOfPoint(playerid,5.0,959.62805176,-1805.61254883,11.79747581))
{
SendClientMessage(playerid, BLUE, "Keep Spraying you're Killing the source");
}
else
{
CreateExplosion(959.62805176,-1805.61254883,11.79747581,2,10.0);
}
if(IsPlayerInRangeOfPoint(playerid,5.0,969.63574219,-1806.59033203,11.79747581))
{
SendClientMessage(playerid, BLUE, "Keep Spraying you're Killing the source");
}
else
{
CreateExplosion(969.63574219,-1806.59033203,11.79747581,2,10.0);
}
if(IsPlayerInRangeOfPoint(playerid,5.0,981.70898438,-1809.00341797,11.79747581))
{
SendClientMessage(playerid, BLUE, "Keep Spraying you're Killing the source");
}
else
{
CreateExplosion(981.70898438,-1809.00341797,11.79747581,2,10.0);
}
if(IsPlayerInRangeOfPoint(playerid,5.0,993.74475098,-1812.03369141,11.79747581))
{
SendClientMessage(playerid, BLUE, "Keep Spraying you're Killing the source");
}
else
{
CreateExplosion(993.74475098,-1812.03369141,11.79747581,2,10.0);
}
if(IsPlayerInRangeOfPoint(playerid,5.0,998.74938965,-1824.42443848,11.27248383))
{
SendClientMessage(playerid, BLUE, "Keep Spraying you're Killing the source");
}
else
{
CreateExplosion(998.74938965,-1824.42443848,11.27248383,2,10.0);
}
if(IsPlayerInRangeOfPoint(playerid,5.0,988.29907227,-1832.22338867,10.87248993))
{
SendClientMessage(playerid, BLUE, "Keep Spraying you're Killing the source");
}
else
{
CreateExplosion(988.29907227,-1832.22338867,10.87248993,2,10.0);
}
if(IsPlayerInRangeOfPoint(playerid,5.0,977.87121582,-1829.84472656,10.82249069))
{
SendClientMessage(playerid, BLUE, "Keep Spraying you're Killing the source");
}
else
{
CreateExplosion(977.87121582,-1829.84472656,10.82249069,2,10.0);
}
if(IsPlayerInRangeOfPoint(playerid,5.0,966.53833008,-1825.62084961,10.82249069))
{
SendClientMessage(playerid, BLUE, "Keep Spraying you're Killing the source");
}
else
{
CreateExplosion(966.53833008,-1825.62084961,10.82249069,2,10.0);
}
if(IsPlayerInRangeOfPoint(playerid,5.0,954.86706543,-1823.16162109,10.82249069))
{
SendClientMessage(playerid, BLUE, "Keep Spraying you're Killing the source");
}
else
{
CreateExplosion(954.86706543,-1823.16162109,10.82249069,2,10.0);
}
return 1;
}
Every source you walk up to after it explodes it wont explode if your in range by 5 but after you move away from it will explode again Ill try get a filterscript of 1 mission where you can destroy it and yeah and at the end get some goodies like money or a armor reward or what ever.. Might need a heli for the fires on the roof lol got to checking it out i was like what the hell i cant reach that..