SetVehicleHealth help !!
#6

Works but it can be abused so i did this
Код:
new Float:vhealth;
    	new vid = GetPlayerVehicleID(playerid);
    	GetVehicleHealth(vid, vhealth);
		if(vhealth == 1000)
 	    {

                    if(GetVehicleModel(vehicleid) == 520 || GetVehicleModel(vehicleid) == 425) // SANG aircrafts
		{
			SetVehicleHealth(vehicleid, 2500); // Set the vehicle health
		}
		if(GetVehicleModel(vehicleid) == 432) // NG tank
		{
			SetVehicleHealth(vehicleid, 10000); // Set the vehicle health
		}
it doesnt set the hp to 10000 when i get on the car, and the car HP is 1000 exactly
Reply


Messages In This Thread
SetVehicleHealth help !! - by D3vin - 13.05.2016, 13:24
Re: SetVehicleHealth help !! - by Nin9r - 13.05.2016, 13:30
Re: SetVehicleHealth help !! - by Konstantinos - 13.05.2016, 13:31
Re: SetVehicleHealth help !! - by F1N4L - 13.05.2016, 13:32
Re: SetVehicleHealth help !! - by D3vin - 13.05.2016, 13:43
Re: SetVehicleHealth help !! - by D3vin - 13.05.2016, 15:33
Re: SetVehicleHealth help !! - by D3vin - 13.05.2016, 15:49
Re: SetVehicleHealth help !! - by Dayrion - 13.05.2016, 16:56
Re: SetVehicleHealth help !! - by Sjn - 13.05.2016, 17:01
Re: SetVehicleHealth help !! - by Dayrion - 13.05.2016, 17:26

Forum Jump:


Users browsing this thread: 1 Guest(s)