Auto Car Repair?
#2

You could do that, or you could compress all of that in a callback

https://sampwiki.blast.hk/wiki/OnVehicleDamageStatusUpdate

With your actual variables, add a check if the player should get their vehicle repaired, and add RepairVehicle(GetPlayerVehicleID(playerid)); under OnVehicleDamageStatusUpdate, although it wont work if the vehicle gets shot, but it will if the player crashes against something.
Reply


Messages In This Thread
Auto Car Repair? - by BlackbirdXd - 10.03.2017, 09:40
Re: Auto Car Repair? - by Toroi - 10.03.2017, 09:45
Re: Auto Car Repair? - by NaS - 10.03.2017, 10:55
Re: Auto Car Repair? - by BlackbirdXd - 10.03.2017, 15:01
Re: Auto Car Repair? - by TitanX - 10.03.2017, 15:09
Re: Auto Car Repair? - by BlackbirdXd - 10.03.2017, 18:12
Re: Auto Car Repair? - by TitanX - 10.03.2017, 18:22
Re: Auto Car Repair? - by BlackbirdXd - 10.03.2017, 18:26
Re: Auto Car Repair? - by NaS - 10.03.2017, 18:37
Re: Auto Car Repair? - by Toroi - 10.03.2017, 20:35

Forum Jump:


Users browsing this thread: 3 Guest(s)