hey guys,
i have a scoreboard and i want to draw the Money of the Player ,
But if i do my code :
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 = 200,20,25
elseif (ping >= 120) then
r,g,b = 255,149,4
else
r,g,b = 50,200,50
end
dxDrawText(getPlayerName ( player ), x/15,y/4*amt/5-700+pls, x/1.9,y/1.9-700+pls, tocolor(255,255,255), 1.2 , "sans","center", "center",false, false,true,true)
dxDrawText(getPlayerMoney ( player ).." $", x/3.5,y/4*amt/5-700+pls, x/1.9,y/1.9-700+pls, tocolor(255,255,255), 1.2, "sans","center", "center",false, false, true, true)
dxDrawText(ping, x/1.1,y/4*amt/5-700+pls, x/1.9,y/1.9-700+pls, tocolor(r,g,b), 1.2 , "sans","center", "center",false, false,true,true)
end
end
end
It just shows the Money from the first player to all ._.