13.05.2016, 15:33
Works but it can be abused so i did this
it doesnt set the hp to 10000 when i get on the car, and the car HP is 1000 exactly
Код:
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 }