Car not exploding
#4

Change this: return 0 == seat ? DestroyVehicle(GetPlayerVehicleID(playerid)) : 0;
to
pawn Код:
new vehicleid = GetPlayerVehicleID(playerid);
SetVehicleHealth(vehicleid,0);
new Float:x, Float:y, Float:z;
GetVehiclePos(vehicleid, x, y, z);
CreateExplosion(x, y, z, 7, 7.0);
This will set the vehicle health to 0, and creates a huge explosion at vehicle, which will most likely also explode.
I'm not sure what you're trying to do with the vehicle seats, but I'm sure you'll work something out with this code.
Reply


Messages In This Thread
Car not exploding - by Eminem 2ka9 - 18.03.2013, 20:06
Re: Car not exploding - by teomakedonija - 18.03.2013, 20:09
Re: Car not exploding - by Eminem 2ka9 - 18.03.2013, 20:12
Re: Car not exploding - by Jstylezzz - 18.03.2013, 20:13
Re: Car not exploding - by mastermax7777 - 18.03.2013, 20:29
Re: Car not exploding - by Eminem 2ka9 - 18.03.2013, 20:35
Re: Car not exploding - by kamzaf - 18.03.2013, 20:38
Re: Car not exploding - by Eminem 2ka9 - 18.03.2013, 20:48
Re: Car not exploding - by kamzaf - 18.03.2013, 20:53
Re: Car not exploding - by Konstantinos - 18.03.2013, 20:53

Forum Jump:


Users browsing this thread: 1 Guest(s)