Jump to content

How to fix this in my nametag script?


Turbe$Z

Recommended Posts

when I am far from other players, the 'admin' in my code is move from my head

					dxDrawColorText ("#00BAFF" .. getPlayerName(player) .. " " .. state, sx-w, sy - offset, sx, sy - offset, tocolor(r,g,b,textalpha), player ~= g_Me and textscale*NAMETAG_TEXTSIZE or (textscale*NAMETAG_TEXTSIZE)/1.5, srfont, "center", "bottom", false, false, false )
					local drawX = sx - NAMETAG_WIDTH*scale/2
					dxDrawColorText (admin, sx-34, sy - offset, sx, sy - offset-64, tocolor(0,0,0,255), textscale*NAMETAG_TEXTSIZE or (textscale*NAMETAG_TEXTSIZE)/1.5, srfont, "center", "center", false, false, false )                    local drawX = sx - NAMETAG_WIDTH*scale/2
					dxDrawColorText (admin, sx-35, sy - offset, sx, sy - offset-65, tocolor(255,255,255,255), textscale*NAMETAG_TEXTSIZE or (textscale*NAMETAG_TEXTSIZE)/1.5, srfont, "center", "center", false, false, false )                    local drawX = sx - NAMETAG_WIDTH*scale/2

how to fix this? i tried change everything to "center" but not good :S

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...