Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local sx, sy = guiGetScreenSize()
- local width - 900
- function drawScoreboard()
- local x = sx/2-width/2
- local y = 200
- dxDrawRectangle(x, y, width, 20, tocolor(0, 50, 255, 220))
- dxDrawRectangle(x, y+20, width, 20, tocolor(0, 0, 0, 185))
- dxDrawText("German Space Racer's [ German / English ] DM/DD/FUN/SHOOTER",x, y, x+width, y+20, tocolor(255, 255, 255, 255), 1, "defailt-blod", "center", "center")
- local namex = x+5
- local teamx = x+300
- local moneyx = x+600
- local pingx = x+width-100
- dxDrawText("Name", namex, y+20,namex, y+20,tocolor(255, 255, 255, 255), 1, "defailt-blod")
- dxDrawText("Team", teamx, y+20, teamx, y+20, tocolor(255, 255, 255, 255), 1, "defailt-blod")
- dxDrawText("Geld", moneyx, y+20, moneyx, y+20, tocolor(255, 255, 255, 255), 1, "defailt-blod")
- dxDrawText("Ping", pingx, y+20, pingx, y+20, tocolor(255, 255, 255, 255), 1, "defailt-blod")
- for i, player in ipairs(getElementByType("player")) do
- i = i+1
- dxDrawRectangle(x,y+i*20, width, 20, tocolor(0, 0, 0, 150))
- dxDrawText(getPlayername(player) namex, y+i*20)
- dxDrawText(getPlayerTeam(player) and (getTeamName(getPlayerTeam(player)) or "Kein Team", teamx, y+i*20)
- dxDrawText("Geld", moneyx, y+i*20)
- dxDrawText("Ping", pingx, y+i*20)
- end
- end
- bindkey("tab","both",function(key, state)
- if state == "down" then
- addEventhandler("onClientRender",getRootElement"(),drawScoreboard)
- elseif state == "up" then
- removeEventHandler("onClientRender",getRootElement(),drawScoreboard)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement