Vehicle Damage
#1

I've got this set to shut the vehicle's engine off when the health gets below 60, but it simply doesn't shut the engine off. You keep driving.

pawn Код:
public OnVehicleDamageStatusUpdate(vehicleid, playerid)
{
    new Float:health;
    GetVehicleHealth(vehicleid, health);
    new engine, lights, alarm, doors, bonnet, boot, objective;
    GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
    if(health < 60)
    {
        SetVehicleParamsEx(vehicleid, 0, lights, alarm, doors, bonnet, boot, objective);
        return 1;
    }
    return 1;
}
Reply


Messages In This Thread
Vehicle Damage - by Mattakil - 16.01.2014, 00:25
Re: Vehicle Damage - by StreetGT - 16.01.2014, 00:37
Re: Vehicle Damage - by ikey07 - 16.01.2014, 00:37
Re: Vehicle Damage - by Mattakil - 16.01.2014, 00:40
Re: Vehicle Damage - by StreetGT - 16.01.2014, 00:41
Re: Vehicle Damage - by Quincy_Gatlin - 16.01.2014, 02:23
Re: Vehicle Damage - by Mattakil - 16.01.2014, 03:00
Re: Vehicle Damage - by Quincy_Gatlin - 16.01.2014, 05:08

Forum Jump:


Users browsing this thread: 3 Guest(s)