Quote:
Originally Posted by lelemaster
Код:
new Float:health, string[128];
GetVehicleHealth(GetPlayerVehicleID(playerid), health);
format(string, sizeof(string), "Vehicle Health Lost: %d" 1000-health);
SendClientMessage(playerid, -1, string);
|
I tried this, but this mode only shows the total amount that he lost, but I wanted to beat that amount only, you know?
example:
I hit the car and now he was living with in
1000, he lost
100 and got
900, right? But if I hit him again and he lost only
50, see:
First hit: ... "Vehicle Health Lost:
100" 1000-health);
/ /All Right
Second hit: ... "Vehicle Health Lost:
150" 1000-health);
/ / Wrong, because the second hit he lost only 50 and not 150!
Got it? But I appreciate your attempt and if anyone else knows ...