How to update the bandana color to textdraw?
#5

All you need to do is do a condition check, and have the color added in the same section below...

Код:
format(string, sizeof(string), "{FF0000}%s\n{F40E0E}HP: %.0f - {FFFFFF}AR: %.0f", GetPlayerRPName(playerid), GetPlayerHealth(playerid), GetPlayerArmour(playerid));
Or if you don't display anything more on the text label you could change the color in the start of the textlabel itself.

Код:
PlayerInfo[playerid][pSpecialTag] = CreateDynamic3DTextLabel(string, COLOR_RED, 0.0, 0.0, 0.2, 20.0, .attachedplayer = playerid, .testlos = 1);
Both of these, are not intended for use, it's simply to show you where whatever needs adding/changing. You will need to make some condition check to check what the players gang is, and what color they will have.

The top way to change would be the best one to actually change, especially if civilians as such have no 'color'.
Reply


Messages In This Thread
How to update the bandana color to textdraw? - by TitoRayne - 10.11.2017, 04:21
Re: How to update the bandana color to textdraw? - by Sew_Sumi - 10.11.2017, 04:25
Re: How to update the bandana color to textdraw? - by Puff - 10.11.2017, 06:36
Re: How to update the bandana color to textdraw? - by TitoRayne - 11.11.2017, 02:28
Re: How to update the bandana color to textdraw? - by Sew_Sumi - 11.11.2017, 05:44
Re: How to update the bandana color to textdraw? - by TitoRayne - 13.11.2017, 11:58
Re: How to update the bandana color to textdraw? - by Sew_Sumi - 13.11.2017, 20:54

Forum Jump:


Users browsing this thread: 2 Guest(s)