Jump to content

AJUDA POR FAVOR SISTEMA LEVEL


Recommended Posts

ARRUMEI UM LEVEL PARA COLOCAR MEU SERVIDOR MAIS FICO BUGADO EM ALGUMAS RELUÇAO O TEXTO FICAR MAIS NA RELUÇAO 800X600 NA 1360X768 FICA CERTINHO JA NA 1920X1080 O TEXO ESCRITO LEVEL:  FICA MUITO PEQUENO 
 

--]]

local sx,sy = guiGetScreenSize() 
local px,py = 1366,768
local x,y =  (sx/px),(sy/py)


function drawLevel ()
    local levelProgress = (getElementData(localPlayer,"minutes") or 0)
    dxDrawRectangle(x*1195, y*141, x*202/110*levelProgress, y*13, tocolor(207, 207, 207, 125), false)
    dxDrawText(" "..(getElementData(localPlayer,"Level") or 0), x*1561, y*4, x*1000, y*292, tocolor(255, 255, 255, 255), x*0.58, "bankgothic","center", "center", false, false, false, false, false)
    
end


addEventHandler("onClientRender",getRootElement(),drawLevel)


local screenW, screenH = guiGetScreenSize()

addEventHandler("onClientRender", root,
    function()
         dxDrawText("LEVEL:", screenW * 0.8426, screenH * 0.1816, screenW * 0.9568, screenH * 0.2018, tocolor(255, 255, 255, 255), 0.51, "bankgothic", "center", "center", false, false, false, false, false)
    end
)
 

 

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...