26.12.2009, 12:20
What about this:
Untested, might cause laggs, etc... but i think it's the way you want it to look. If it causes too hard laggs, just decimate the numbers a bit, so there will not be that much explosions, or put all into a timer, so the time between the explosions is a little larger. Have Fun.
pawn Код:
new Float:pX, Float:pY, Float:pZ;
GetPlayerPos(playerid, pX, pY, pZ);
for(new Float:eZ=pZ+5; eZ<=pZ+110; eZ++)
{
if(eZ==pZ+99)
{
CreateExplosion(pX, pY, eZ, 5, 60);
}
else if(eZ>=nZ+99)
{
new Float:randomizer=floatadd(floatdiv(Float:random(10), Float:random(10)), floatdiv(Float:random(10), Float:random(10)));
CreateExplosion(nX+randomizer, nY+randomizer, eZ+randomizer, 5, 7);
}
else
{
CreateExplosion(pX, pY, eZ, 5, 4);
}
}

