18.03.2013, 20:13
Change this: return 0 == seat ? DestroyVehicle(GetPlayerVehicleID(playerid)) : 0;
to
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.
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);
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.