OH lol, waaaaaahhh!! This is NO good, hell no. =/
local newLvl = false
function newLvlFunction()
if not newLvl then
setTimer(function()
newLvl = false
end,5000,1)
end
newLvl = true
end
addEvent( "onClientLevelUp", true )
addEventHandler( "onClientLevelUp", localPlayer, newLvlFunction)
addEventHandler("onClientRender", root,
function ()
if newLvl == true then
dxDrawRectangle(screenW * 0.4083, screenH * 0.9037, screenW * 0.1839, screenH * 0.0528, tocolor(0, 0, 0, 160), false)
dxDrawImage(screenW * 0.4094, screenH * 0.9046, screenW * 0.0271, screenH * 0.0491, ":DayZ/tools/images/flags/join.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
dxDrawText("Congradulations! You have reached "..getElementData(getLocalPlayer(),"level").." Level!", screenW * 0.4385, screenH * 0.9046, screenW * 0.5901, screenH * 0.9537, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false)
end
end)
@Emix