Explode Everything
#1

Hi, I would love to make a function that explodes every X, Y and Z coцrdinate, so it will destroy everything. But I really don't know how to make that, and I think this isn't gonna to work fine:
pawn Код:
stock ExplodeEverything()
{
    for(new X = -3000; X < 3000); X++)
    {
        for(new Y = -3000; Y < 3000); Y++)
        {
            for(new Z = -1000; Z < 1000); Z++)
            {
                CreateExplosion(X, Y, Z, 6, 20.0);
            }
        }
    }
}
Maybe there is someone with a idea or solution?
Reply
#2

wow i guess that would lag very hard...
dunno how to make that but i wouldn't do that if id be you
Reply
#3

yeah i know that that can lagg a lot, it's about 72.000.000.000 explosions i want to make xD. but still i want to know how i can make this
Reply
#4

That even maybe can cause crash in client-side....
Your code is fine, but
edit x++,y++,z++
to
x += 5, y += 5, z += 5.
for z loop is -200 - 3000(interiors is on the sky)
God bless you : O
Edited:
3000/5 = 600
600x600x600 = 216,000,000, that's still very large amount...
I think it can explode your server, that's everything lol
Reply
#5

and what about this:
pawn Код:
new bomb;
new Float:eX, Float:eY, Float:eZ;

forward ExplodeEverything();

//command
eX = -3000.0;
eY = -3000.0;
eZ = -100.0;
bomb = SetTimer("ExplodeEverything", 200, true);

public ExplodeEverything()
{
  if(eX && eY < 3000.0 && eZ < 1000.0)
  {
     CreateExplosion(eX, eY, eZ, 6, 20.0);
    eX += 10.0;
    eY += 10.0;
    eZ += 10.0;
  }
  else
  {
    KillTimer(bomb);
  }
  return 1;
}
or just
CreateExplosion(0, 0, 0, 6, 6000.0);?
Reply
#6

Quote:
Originally Posted by Remi-X
and what about this:
pawn Код:
new bomb;
new Float:eX, Float:eY, Float:eZ;

forward ExplodeEverything();

//command
eX = -3000.0;
eY = -3000.0;
eZ = -100.0;
bomb = SetTimer("ExplodeEverything", 200, true);

public ExplodeEverything()
{
  if(eX && eY < 3000.0 && eZ < 1000.0)
  {
     CreateExplosion(eX, eY, eZ, 6, 20.0);
    eX += 10.0;
    eY += 10.0;
    eZ += 10.0;
  }
  else
  {
    KillTimer(bomb);
  }
  return 1;
}
or just
CreateExplosion(0, 0, 0, 6, 6000.0);?
Range seems doesn't work, ane in this case will explode in a line.

Do you wanna effect either all players or whole map?
Reply
#7

whole map
cause i know how to explode all players
Reply
#8

Quote:
Originally Posted by Remi-X
whole map
cause i know how to explode all players
Lae's do a math...
1 explode = 0.1 ms(just in case)
In my edition, create 216,000,000 explodtions.
You need
21,600,000 ms = 216,0 s = 36 min = 0.6h.
Big bomb o.O
Reply
#9

Interesting. if you will get it work then i want try too
Reply
#10

I don't think this is gonna to work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)