SA-MP Forums Archive
How do I create explosion? - 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: How do I create explosion? (/showthread.php?tid=604300)



How do I create explosion? - danielpalade - 03.04.2016

I want to create 4 explosions inside the bank, interior 6.
This is what I have done.
Код:
		CreateExplosion(2315.6775,0.0957,26.7422, 1, 5.0);
		CreateExplosion(2315.6775,0.0957,26.7422, 1, 5.0);
		CreateExplosion(2315.6775,0.0957,26.7422, 1, 5.0);
		CreateExplosion(2315.6775,0.0957,26.7422, 1, 5.0);
It just won't work..
I don't hear anything and I don't see anything either.


Re: How do I create explosion? - DLR - 03.04.2016

Are you actually at that location though? Test it using this....
pawn Код:
// Get the player's position
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
 
    // Create an explosion at the player's position
    CreateExplosion(x, y, z, 12, 10.0);
 
    return 1;



Re: How do I create explosion? - danielpalade - 03.04.2016

Quote:
Originally Posted by DLR
Посмотреть сообщение
Are you actually at that location though? Test it using this....
pawn Код:
// Get the player's position
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
 
    // Create an explosion at the player's position
    CreateExplosion(x, y, z, 12, 10.0);
 
    return 1;
I don't want it to explode where the player is at.
I have used /save in-game to save the location of where I want them to be.


Re: How do I create explosion? - DLR - 03.04.2016

Yeah but I'm just saying, use that to test it to make sure it works first. Then set the coordinates and type of explosion you want. Then make sure you're near by to see it.