Jump to content

Nametag error .-.


Recommended Posts

Nametag error?

Hey can somebody say me whats wrong here and how to fix it?

This should show over the nick a team or a rank if player is on the team named 'Advisory Racers' then will change to show their rank, and if he isn't on that team it will show the player team.

Client-Side

                    local r,g,b = 255,255,255 
                    local rank = getElementData(player, "ACL") or "N/A" 
                    local team = getPlayerTeam(player) 
                    local UpperNickVariable = team 
                    if team then 
                        r,g,b = getTeamColor(team) 
                    elseif team == "Advisory Racers" then                    
                        UpperNickVariable = rank 
                        else 
                        UpperNickVariable = team 
                    end 
                    dxDrawColoredText( UpperNickVariable.." \n"..getPlayerNametagText(player), sx - w, sy - oet, sx - w, sy, tocolor(r, g, b, a), {r,g,b,a} , NfontScale * textscale * NAMETAG_TEXTSIZE_N, Nfont, "center", "bottom", false, false, false, 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...