Jump to content

Adding shade to nametag


Gravestone

Recommended Posts

I want to add shade to nametags. I tried this:

                                    dxDrawText ( playerName, sx, sy - offset, sx, sy - offset, tocolor(0,0,0,200), textScale*Nametags_Size*0.8, myfont, "center", "bottom", false, false, false, true, true )                 
                    dxDrawText ( playerName, sx, sy - offset, sx, sy - offset, tocolor(r,g,b,255), textScale*Nametags_Size*0.7, myfont, "center", "bottom", false, false, false, true, true )   

Result : http://imgur.com/A5mki3i

Link to comment

Dont change the fontsize.

Just -1 on x and +1 on y.

dxDrawText ( playerName, sx-1, sy - offset+1, sx-1, sy - offset+1, tocolor(0,0,0,200), textScale*Nametags_Size*0.7, myfont, "center", "bottom", false, false, false, true, true )                 
dxDrawText ( playerName, sx, sy - offset, sx, sy - offset, tocolor(r,g,b,255), textScale*Nametags_Size*0.7, myfont, "center", "bottom", false, false, false, true, true ) 

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...