15.10.2012, 01:31
Don't know if this one will work.
Код:
//top of your script new Float:HealthOfCar[MAX_VEHICLES]; //In OnVehicleSpawn HealthOfCar[vehicleid] = 1000; //The function where you lose health new Float:health, string[128]; GetVehicleHealth(GetPlayerVehicleID(playerid), health); format(string, sizeof(string), "Vehicle Health Lost: %d" HealthOfCar[GetPlayerVehicleID(playerid)]-health); SendClientMessage(playerid, -1, string); HealthOfCar[GetPlayerVehicleID(playerid)] -= health;

