Witam posiadam skrypt na nametagi lecz jak chce da? vopis i daje przykladowo #FFFF00siema to to siema sie nie koloruje
[lua]
local sw,sh=guiGetScreenSize()
local timer = false
--local nametagFont = "default"
local nametagFont = dxCreateFont( "f/droid-sans.ttf", 11)
local auta = dxCreateFont( "f/droid-sans.ttf", 10)
if not nametagFont then nametagFont = "default-bold" end
local fontHeight=dxGetFontHeight(1, nametagFont)
local nametagScale = 1
local nametagAlpha = 255
local nametagColor =
{
r = 255,
g = 255,
b = 255
}
local hp_width=math.floor(sw/20)
if hp_width<50 then hp_width=50 end
local hp_height=math.floor(hp_width/10)
local gsize=sw>800 and 32 or 16
local ourlevel=0
local ourfid=""
setTimer(function()
ourlevel=getElementData(localPlayer, "level") or 0
ourfid=getElementData(localPlayer, "player:faction") or ""
end, 15000, 0)
function korona()
local rootx, rooty, rootz = getCameraMatrix()
for i, player in ipairs(getElementsByType("player",root,true)) do
if getElementDimension(localPlayer)==getElementDimension(player) and getElementInterior(localPlayer)==getElementInterior(player) then
if getElementAlpha(player) < 1 then
if not getElementData(localPlayer,"player:admin") == true then return end
end
local x,y,z = getPedBonePosition(player,6)
if x and y and z then
local distanc... |