10.07.2013, 02:22
by this way whenever it gets damage and the vehicle health becom equals or less than 300 it will set the engine off then set the vehicle helath to 300
pawn Код:
new Float:health;
new veh;
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(veh, engine, lights, alarm, doors, bonnet, boot, objective);
GetVehicleHealth(veh, health);
if(health <=300)
{
SetVehicleHealth(veh,300);
SetVehicleParamsEx(veh, 1, lights, alarm, doors, bonnet, boot, objective)
}