SA-MP Forums Archive
Vehicles' Health - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Vehicles' Health (/showthread.php?tid=301521)



Vehicles' Health - PlayHard - 04.12.2011

Hello,

I wonder how to make a Vehicles' Health system using GetVehicleHealth and Textdraws. I searched all over the forum, I found some but I didn't really understand how to make it. I appreciate any help .

EDIT: I've successfully made one thanks a lot!


Re: Vehicles' Health - PlayHard - 06.12.2011

Bump in purpose of help <


Re: Vehicles' Health - §с†¶e®РµРe - 06.12.2011

You gotta first GetVehicleHealth and then create a textdraw who's text is the GetVehicleHealth


Re: Vehicles' Health - MP2 - 06.12.2011

Quote:
Originally Posted by §с†¶e®РµРe
Посмотреть сообщение
You gotta first GetVehicleHealth and then create a textdraw who's text is the GetVehicleHealth
You've just told him what he's asked for, which, suprisingly, he knows, as he asked it. He's asking HOW, not what.

The following articles may help you:

https://sampwiki.blast.hk/wiki/SetTimer
https://sampwiki.blast.hk/wiki/SetTimerEx
https://sampwiki.blast.hk/wiki/OnPlayerUpdate
https://sampwiki.blast.hk/wiki/GetPlayerVehicleID
https://sampwiki.blast.hk/wiki/GetVehicleHealth
https://sampwiki.blast.hk/wiki/format
https://sampwiki.blast.hk/wiki/TextDrawCreate
https://sampwiki.blast.hk/wiki/TextDrawSetString
https://sampwiki.blast.hk/wiki/OnPlayerStateChange