SA-MP Forums Archive
Explotion help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Explotion help (/showthread.php?tid=452896)

Pages: 1 2


Re: AW: Explotion help - MichaelWharton101 - 23.07.2013

Quote:
Originally Posted by Forbidden
Посмотреть сообщение
Follow...
This will make it a bit harder for you.

Do a timer, like in the Command, which repeats after a time, example: SetTimerEx("ExplodeRepeat", 1000, true, "i", playerid);
In this public, you create the Explosion with the defined Position...
I don't think I understand what you are saying.

After a few times of reading it I understand better, but how would I do the public one?


AW: Explotion help - Forbidden - 23.07.2013

Quote:

SetTimerEx("ExplodeRepeat", 1000, true, "i", playerid);

forward ExplodeRepeat (playerid);
public ExplodeRepeat (playerid)
{
for( new i = 0; i < 500; i++ )
{
new float : x, y, z// adjust
CreateExplosion( bla bla ); // adjust
}
}

Please adjust it, I saw many times, that "peoples"
assume it into their scripts...


Re: Explotion help - MichaelWharton101 - 23.07.2013

By adjust it you mean...


AW: Explotion help - Forbidden - 23.07.2013

Dude ,
I wrote
Quote:

new float : x, y, z

so

Quote:

new Float: x,
Float: y,
Float: z
;




Re: AW: Explotion help - MichaelWharton101 - 23.07.2013

Quote:
Originally Posted by Forbidden
Посмотреть сообщение
Dude ,
I wrote


so
So for the createexplosion it would be...CreateExplosion(x, y, z, 11, 25.0); ?


AW: Explotion help - Forbidden - 23.07.2013

Exactly.
Here the whole thing, so you cant become confused:
Quote:

SetTimerEx("ExplodeRepeat", 1000, true, "i", playerid);

forward ExplodeRepeat (playerid);
public ExplodeRepeat (playerid)
{
for( new i = 0; i < 500; i++ )
{
new Float: x,
Float: y,
Float: z
;
GetPlayerPos( playerid, x, y, z );
CreateExplosion(x, y, z, 11, 25.0)
}
}




Re: AW: Explotion help - MichaelWharton101 - 23.07.2013

Quote:
Originally Posted by Forbidden
Посмотреть сообщение
Exactly.
Here the whole thing, so you cant become confused:
Cool, Okay I'll test it and let you know.

EDIT: It still did not follow me.

EDIT1: I fixed it, now it is in my way when I walk, how can I make it so it spawns a bit more behind me?


AW: Explotion help - Forbidden - 23.07.2013

Add something to the Coordinates.
For example for Coord x :
Quote:

CreateExplosion(x + 5, y, z, 11, 25.0)




Re: AW: Explotion help - MichaelWharton101 - 23.07.2013

Quote:
Originally Posted by Forbidden
Посмотреть сообщение
Add something to the Coordinates.
For example for Coord x :
Okay, Now that I got that I saw this where it looked like wing (Explosion ID 5) and it did not blow up like it is doing me, how would I do this?
Example:

Found this off USRP


Re: Explotion help - MichaelWharton101 - 23.07.2013

anyone?