Setting vehicle health so it dont blow up
#4

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)
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)