How do I make check the script help, and if it's less than 250, It will make the car engine shutdown and say 'Engine's vehicle is dead'
Bump.. Help please?
pawn Код:
new Float:hp;
GetVehicleHealth(vehicleid, hp);
if(hp < 250)
{
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicleid, VEHICLE_PARAMS_OFF, lights, alarm, doors, bonnet, boot, objective);
SendClientMessage(playerid,0x00FF00FF,"Engine is dead. Have a nice life.");
}