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)