Set vehicle to explode? - 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: Set vehicle to explode? (
/showthread.php?tid=510712)
Set vehicle to explode? -
Trynda - 02.05.2014
I wonder if i can create some codes to explode the vehicle as soon as possible
Re: Set vehicle to explode? -
Galletziz - 02.05.2014
pawn Код:
new vID = GetPlayerVehicleID(playerid);
SetVehicleHealt(vID,0.0);
Re: Set vehicle to explode? -
Trynda - 02.05.2014
Quote:
Originally Posted by Galletziz
pawn Код:
new vID = GetPlayerVehicleID(playerid); SetVehicleHealt(vID,0.0);
|
No, not set to fire,
I mean to explode quickly
Re: Set vehicle to explode? -
Galletziz - 02.05.2014
pawn Код:
new Float:vx, Float:vy, Float:vz;
new vID = GetPlayerVehicleID(playerid);
GetVehiclePos(vID,vx,vy,vz);
CreateExplosion(vx, vy, vz, 12, 10.0); // 12 type of explosion and 10.0 radius
Re: Set vehicle to explode? -
Trynda - 02.05.2014
Quote:
Originally Posted by Galletziz
pawn Код:
new Float:vx, Float:vy, Float:vz; new vID = GetPlayerVehicleID(playerid); GetVehiclePos(vID,vx,vy,vz); CreateExplosion(vx, vy, vz, 12, 10.0); // 12 type of explosion and 10.0 radius

|
Dude, It still setting on fire!
WHY!!
Any advice please
Re: Set vehicle to explode? -
superrobot48 - 02.05.2014
DestroyVehicle(vehicleid)