14.06.2013, 01:09
i wanted to know how would i make so if the vehicle gets to a health level such as 200% damaged and it will cutout the engine but as i have my engine starter on a dialog. so can anyone tell me.
new Float:health;
new vehicle = GetPlayerVehicleID(playerid);
check = GetVehicleHealth(veh,health);
if(check < 200)
{
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(veh, 0, 0, 0, 0, 1, 0, 0);
ShowPlayerDialog(playerid, 10, DIALOG_STYLE_MSGBOX, "Vehicle Notice", "Your vehicle engine is cut off! Better check a mechanic.", "Close", "");
}