[HELP] When a vehicle loses life...
#3

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 ...
Reply


Messages In This Thread
[HELP] When a vehicle loses life... - by [DkS]JR_Junior - 15.10.2012, 01:03
Re : [HELP] When a vehicle loses life... - by lelemaster - 15.10.2012, 01:10
Re: Re : [HELP] When a vehicle loses life... - by [DkS]JR_Junior - 15.10.2012, 01:24
Re : [HELP] When a vehicle loses life... - by lelemaster - 15.10.2012, 01:31
Re: [HELP] When a vehicle loses life... - by JhnzRep - 15.10.2012, 01:52
Re: [HELP] When a vehicle loses life... - by [DkS]JR_Junior - 17.10.2012, 02:56

Forum Jump:


Users browsing this thread: 1 Guest(s)