How to set a vehicle's model health
#3

You need to update the HP when the vehicle (re)spawns:

Код:
public OnVehicleSpawn(vehicleid)
{
	switch (GetVehicleModel(vehicleid)) // Models
	{
		case nrg, fagio, x, y, z:
			SetVehicleHealth(vehicleid, 2000.0);
	}

	if (vehicleid == VEHICLE_1) // IDs
		SetVehicleHealth(vehicleid, 5000.0);
}
Reply


Messages In This Thread
How to set a vehicle's model health - by JXbro - 13.09.2015, 14:26
Re: How to set a vehicle's model health - by Gammix - 13.09.2015, 14:34
Re: How to set a vehicle's model health - by Evocator - 13.09.2015, 14:44
Re: How to set a vehicle's model health - by JXbro - 13.09.2015, 15:03

Forum Jump:


Users browsing this thread: 1 Guest(s)