SA-MP Forums Archive
DamageColor - 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: DamageColor (/showthread.php?tid=639482)



DamageColor - IchNar - 18.08.2017

Greedings.I have got textdraw where is cars HP,but i want to make different color like if someone have 30 % HP it will be red.


Re: DamageColor - FreAkeD - 18.08.2017

https://sampwiki.blast.hk/wiki/GetVehicleHealth
https://sampwiki.blast.hk/wiki/TextDrawSetString
https://sampwiki.blast.hk/wiki/GameTextStyle

Get the vehicles health, and if its 30% or under, make it red (~r~)


Re: DamageColor - IchNar - 18.08.2017

Its ugly red,can i make my own red color ?? like HEX color?


Re: DamageColor - TheCman - 18.08.2017

Not with TextDraws, what I personally do is to attach a 3D text label to a vehicle, and set the color there using {FF0000} for red (for example).