Jump to content

Scoreboard Problem


Karuzo

Recommended Posts

Hey Guys,

So i have a problem with my dxDrawn Scoreboard.

I want to make +2 on the Y-Axis for every player.

here's my code:

     
local playerheight = 10 
local players = getElementsByType ( "player" ) 
    local playas = 0 
    for amt, player in pairs(players) do 
        playas = playas + 1 
        if (playas <= 20) then 
            local ping = getPlayerPing(player) 
            if (ping >= 250) then 
            r,g,b = 255,0,0 
            elseif (ping >= 120) then 
            r,g,b = 255,69,0 
            else         
            r,g,b = 0,255,0      
            end      
        dxDrawText(getPlayerName ( player ), X+60,Y+10*playerheight, Width,Height, tocolor(255,255,255), 1 , "default","center", "center",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...