11.11.2017, 05:44
All you need to do is do a condition check, and have the color added in the same section below...
Or if you don't display anything more on the text label you could change the color in the start of the textlabel itself.
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'.
Код:
format(string, sizeof(string), "{FF0000}%s\n{F40E0E}HP: %.0f - {FFFFFF}AR: %.0f", GetPlayerRPName(playerid), GetPlayerHealth(playerid), GetPlayerArmour(playerid));
Код:
PlayerInfo[playerid][pSpecialTag] = CreateDynamic3DTextLabel(string, COLOR_RED, 0.0, 0.0, 0.2, 20.0, .attachedplayer = playerid, .testlos = 1);
The top way to change would be the best one to actually change, especially if civilians as such have no 'color'.