Jump to content

Nametag


ZeyadGTX

Recommended Posts

Hey i use this Nametag which Draw pic Next To the Nametag of the player but i have problem the pic doesn't change , I want him If Admin Then The Image draws and file exists in :Reputation/class/classicon_admin.png

if he is just player then :reputation/class/classicon_player.png, because iam ew at scripting so iam Noob :D

local imageSize = dxGetFontHeight ( textscale*NAMETAG_TEXTSIZE, srfont ) 
                        if getElementData(player, "Level") and fileExists ( ":reputation/class/classicon_gm.png" ) then 
                        dxDrawImage ( sx - math.max(nameWidth/2, teamWidth/2) - imageSize - 1*scale, sy - imageSize, imageSize, imageSize, ":reputation/class/classicon_gm.png" ) 
                        end 

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