в разделе Gui/Jass есть важный топик полезные функци, одна из них: Code
function GetPlayerNameColored takes player p returns string
local playercolor col=GetPlayerColor(p)
local string r=GetPlayerName(p)
if GetPlayerId(p) == 12 then
set r="the |CFF333429"+r+"|r"
elseif GetPlayerId(p) == 13 then
set r="the |cffc1c1ff"+r+"|r"
elseif GetPlayerId(p) == 14 then
set r="the |CFF333429"+r+"|r"
elseif GetPlayerId(p) == 15 then
set r="the |CFF333429"+r+"|r"
elseif col == PLAYER_COLOR_RED then
set r="|CFFFF0303"+r+"|r"
elseif col == PLAYER_COLOR_BLUE then
set r="|CFF0042FF"+r+"|r"
elseif col == PLAYER_COLOR_CYAN then
set r="|CFF1CE6B9"+r+"|r"
elseif col == PLAYER_COLOR_PURPLE then
set r="|CFF540081"+r+"|r"
elseif col == PLAYER_COLOR_YELLOW then
set r="|CFFFFFC00"+r+"|r"
elseif col == PLAYER_COLOR_ORANGE then
set r="|CFFFE8A0E"+r+"|r"
elseif col == PLAYER_COLOR_GREEN then
set r="|CFF20C000"+r+"|r"
elseif col == PLAYER_COLOR_PINK then
set r="|cffff80c0"+r+"|r"
elseif col == PLAYER_COLOR_LIGHT_GRAY then
set r="|CFF959697"+r+"|r"
elseif col == PLAYER_COLOR_LIGHT_BLUE then
set r="|CFF7FBFF1"+r+"|r"
elseif col == PLAYER_COLOR_AQUA then
set r="|cFF106246"+r+"|r"
elseif col == PLAYER_COLOR_BROWN then
set r="|cFF4E2A04"+r+"|r"
else
set r=""
endif
set col=null
return r
endfunction
[DUОS] ©