20.12.2011, 20:14
how do i stop the cars setting on fire and blowing up ? instead i would like it to say your vehicle has roken down use /assistance to repair the vehicle
new Float:vHealth;
GetVehicleHealth(vehicleid, vHealth);
if(vHealth < 450)
{
//engine code here
SendClientMessage(playerid, color, "You car has broken down!");
}
new vengine,vlights,valarm,vdoors,vbonnet,vboot,vobjective;
GetVehicleParamsEx(GetPlayerVehicleID(playerid),vengine,vlights,valarm,vdoors,vbonnet,vboot,vobjective);
SetVehicleParamsEx(GetPlayerVehicleID(playerid),1,vlights,valarm,vdoors,vbonnet,vboot,vobjective);