Add player colors
This commit is contained in:
parent
60f9060bd5
commit
8444c36f3f
@ -83,6 +83,7 @@ function ctf.hud.update(player)
|
|||||||
if not color then
|
if not color then
|
||||||
color = "0x000000"
|
color = "0x000000"
|
||||||
end
|
end
|
||||||
|
player:set_nametag_attributes({ color = "0xFF" .. string.sub(color, 3) })
|
||||||
if not ctf.hud:exists(player, "ctf:hud_team") then
|
if not ctf.hud:exists(player, "ctf:hud_team") then
|
||||||
return ctf.hud:add(player, "ctf:hud_team", {
|
return ctf.hud:add(player, "ctf:hud_team", {
|
||||||
hud_elem_type = "text",
|
hud_elem_type = "text",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user