Preventing car explosion
#2

if you have a speedo, put
pawn Code:
public OnVehicleDamageStatusUpdate(vehicleid, playerid)
{
new panels, tires;
    GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
    bonnet = doors & 0x7;
    if(bonnet == 3)
    {
          SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
}
return 1;
}
will stop engine when bonnet comes off. modify it check its health. if its lower than 500 turn it off.
Reply


Messages In This Thread
Preventing car explosion - by xGoldenx - 11.12.2011, 14:41
Re: Preventing car explosion - by THE_KNOWN - 11.12.2011, 14:45
Re: Preventing car explosion - by xGoldenx - 11.12.2011, 15:03
Re: Preventing car explosion - by THE_KNOWN - 11.12.2011, 15:03
Re: Preventing car explosion - by xGoldenx - 11.12.2011, 16:25
Re: Preventing car explosion - by THE_KNOWN - 11.12.2011, 16:31
Re: Preventing car explosion - by AeroBlast - 11.12.2011, 16:34
Re: Preventing car explosion - by [LHT]Bally - 11.12.2011, 16:40
Re: Preventing car explosion - by wildcookie007 - 11.12.2011, 16:43
Re: Preventing car explosion - by THE_KNOWN - 11.12.2011, 16:45

Forum Jump:


Users browsing this thread: 3 Guest(s)