Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -----------------------
- ---(c) 2013 Backland---
- ------Scripted by------
- ------KryPtoHolYx------
- -----------------------
- ---All Right Reserved--
- -----------------------
- -----------------------
- -----------------------
- ad = { { { { "as" } } } } function ad:as() return "ab" end ad:as()
- lp = getLocalPlayer()
- function convertNumber ( number )
- local formatted = number
- while true do
- formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1.%2')
- if ( k==0 ) then
- break
- end
- end
- return formatted
- end
- fading = 0
- fading2 = "up"
- local screenWidth, screenHeight = guiGetScreenSize()
- function updateAlterKrypt()
- if getElementData(getLocalPlayer(), "logedin") then
- if fading >= 0 and fading2 == "up" then
- fading = fading + 5
- elseif fading <= 255 and fading2 == "down" then
- fading = fading - 5
- end
- if fading == 0 then
- fading2 = "up"
- elseif fading == 255 then
- fading2 = "down"
- end
- dxDrawImage(screenWidth * 0.9325, screenHeight * 0.41, screenHeight * 0.075, screenHeight * 0.075, "images/dayzicons/sound.png", 0, 0, 0, tocolor(0, 255, 0))
- local sound = getElementData(getLocalPlayer(), "volume") / 20
- if sound > 1 then
- dxDrawImage(screenWidth * 0.9075, screenHeight * 0.41, screenHeight * 0.075, screenHeight * 0.075, "images/dayzicons/level_" .. sound .. ".png", 0, 0, 0, tocolor(0, 255, 0))
- end
- dxDrawImage(screenWidth * 0.9325, screenHeight * 0.475, screenHeight * 0.075, screenHeight * 0.075, "images/dayzicons/eye.png", 0, 0, 0, tocolor(0, 255, 0))
- local sound = getElementData(getLocalPlayer(), "visibly") / 20
- if sound > 1 then
- dxDrawImage(screenWidth * 0.9075, screenHeight * 0.475, screenHeight * 0.075, screenHeight * 0.075, "images/dayzicons/level_" .. sound .. ".png", 0, 0, 0, tocolor(0, 255, 0))
- end
- if getElementData(getLocalPlayer(), "brokenbone") then
- dxDrawImage(screenWidth * 0.9375, screenHeight * 0.55, screenHeight * 0.065, screenHeight * 0.065, "images/dayzicons/brokenbone.png", 0, 0, 0, tocolor(255, 255, 255))
- end
- local humanity = getElementData(getLocalPlayer(), "humanity")
- if humanity > 0 then
- do
- local humanity = getElementData(getLocalPlayer(), "humanity") / 9.8
- r, g, b = 255 - humanity, humanity, 0
- end
- else
- r, g, b = 255, 0, 0
- end
- dxDrawImage(screenWidth * 0.925, screenHeight * 0.6, screenHeight * 0.1, screenHeight * 0.1, "images/dayzicons/bandit.png", 0, 0, 0, tocolor(r, g, b))
- local temperature = math.round(getElementData(getLocalPlayer(), "temperature"), 2)
- r, g, b = 0, 255, 0
- if temperature <= 37 then
- value = (37 - temperature) * 42.5
- r, g, b = 0, 255 - value, value
- elseif temperature > 37 and temperature < 41 then
- r, g, b = 0, 255, 0
- elseif temperature == 41 then
- r, g, b = 255, 0, 0
- end
- if value > 215 then
- dxDrawImage(screenWidth * 0.94, screenHeight * 0.7, screenHeight * 0.065, screenHeight * 0.065, "images/dayzicons/temperature.png", 0, 0, 0, tocolor(r, g, b, fading))
- else
- dxDrawImage(screenWidth * 0.94, screenHeight * 0.7, screenHeight * 0.065, screenHeight * 0.065, "images/dayzicons/temperature.png", 0, 0, 0, tocolor(r, g, b))
- end
- r, g, b = 0, 255, 0
- local thirst = getElementData(getLocalPlayer(), "thirst") * 2.55
- r, g, b = 255 - thirst, thirst, 0
- if thirst < 15 then
- dxDrawImage(screenWidth * 0.94, screenHeight * 0.775, screenHeight * 0.065, screenHeight * 0.065, "images/dayzicons/thirsty.png", 0, 0, 0, tocolor(r, g, b, fading))
- else
- dxDrawImage(screenWidth * 0.94, screenHeight * 0.775, screenHeight * 0.065, screenHeight * 0.065, "images/dayzicons/thirsty.png", 0, 0, 0, tocolor(r, g, b))
- end
- r, g, b = 0, 255, 0
- local blood = getElementData(getLocalPlayer(), "blood") / 47.2
- r, g, b = 255 - blood, blood, 0
- dxDrawImage(screenWidth * 0.94, screenHeight * 0.85, screenHeight * 0.065, screenHeight * 0.065, "images/dayzicons/blood.png", 0, 0, 0, tocolor(r, g, b))
- if 0 < getElementData(getLocalPlayer(), "bleeding") then
- dxDrawImage(screenWidth * 0.94, screenHeight * 0.85, screenHeight * 0.065, screenHeight * 0.065, "images/dayzicons/medic.png", 0, 0, 0, tocolor(255, 255, 255, fading))
- end
- r, g, b = 0, 255, 0
- local food = getElementData(getLocalPlayer(), "food") * 2.55
- r, g, b = 255 - food, food, 0
- if food < 15 then
- dxDrawImage(screenWidth * 0.94, screenHeight * 0.925, screenHeight * 0.065, screenHeight * 0.065, "images/dayzicons/food.png", 0, 0, 0, tocolor(r, g, b, fading))
- else
- dxDrawImage(screenWidth * 0.94, screenHeight * 0.925, screenHeight * 0.065, screenHeight * 0.065, "images/dayzicons/food.png", 0, 0, 0, tocolor(r, g, b))
- end
- local x, y, z = getElementPosition(getLocalPlayer())
- for i, player in ipairs(getElementsByType("player")) do
- setPlayerNametagShowing(player, false)
- if player ~= getLocalPlayer() then
- local vehicle = getPedOccupiedVehicle(player)
- local px, py, pz = getElementPosition(player)
- local pdistance = getDistanceBetweenPoints3D(x, y, z, px, py, pz)
- if pdistance <= 2 then
- local sx, sy = getScreenFromWorldPosition(px, py, pz + 0.95, 0.06)
- if sx and sy then
- if getElementData(player, "bandit") then
- text = string.gsub(getPlayerName(player), "#%x%x%x%x%x%x", "") .. " (Bandit)"
- else
- text = string.gsub(getPlayerName(player), "#%x%x%x%x%x%x", "")
- end
- local w = dxGetTextWidth(text, 1.02, "default-bold")
- if (getPlayerName(player) ~= "PeacefullyToast") then
- dxDrawText(text, sx - w / 2, sy, sx - w / 2, sy, tocolor(100, 255, 100, 200), 1.02, "default-bold")
- end
- end
- end
- end
- end
- local x, y, z = getElementPosition(getLocalPlayer())
- for i, veh in ipairs(getElementsByType("vehicle")) do
- local px, py, pz = getElementPosition(veh)
- local vehID = getElementModel(veh)
- local vehicle = getPedOccupiedVehicle(getLocalPlayer())
- if veh ~= vehicle and vehID ~= 548 then
- local pdistance = getDistanceBetweenPoints3D(x, y, z, px, py, pz)
- if pdistance <= 6 then
- local sx, sy = getScreenFromWorldPosition(px, py, pz + 0.95, 0.06)
- if sx and sy then
- local w = dxGetTextWidth(getVehicleName(veh), 1.02, "default-bold")
- dxDrawText(getVehicleName(veh), sx - w / 2, sy, sx - w / 2, sy, tocolor(100, 255, 100, 200), 1.02, "default-bold")
- end
- end
- end
- end
- local veh = getPedOccupiedVehicle(getLocalPlayer())
- if veh then
- local maxfuel = getElementData(veh, "maxfuel")
- local fuel = getElementData(getElementData(veh, "parent"), "fuel")
- local needengine = getElementData(veh, "needengines")
- local needtires = getElementData(veh, "needtires")
- local engine = getElementData(getElementData(veh, "parent"), "Engine_inVehicle") or 0
- local tires = getElementData(getElementData(veh, "parent"), "Tire_inVehicle") or 0
- local offset = dxGetFontHeight(1.02, "default-bold")
- local w = dxGetTextWidth(engine .. "/" .. needengine .. " Engine(s)", 1.02, "default-bold")
- if engine == needengine then
- r, g, b = 0, 255, 0
- else
- r, g, b = 255, 0, 0
- end
- dxDrawText(engine .. "/" .. needengine .. " Engine(s)", screenWidth * 0.5 - w / 2, screenHeight * 0, screenWidth * 0.5 - w / 2, screenHeight * 0, tocolor(r, g, b, 220), 1.02, "default-bold")
- local w = dxGetTextWidth(tires .. "/" .. needtires .. " Tires", 1.02, "default-bold")
- if tires == needtires then
- r, g, b = 0, 255, 0
- else
- r, g, b = 255, 0, 0
- end
- dxDrawText(tires .. "/" .. needtires .. " Tires", screenWidth * 0.5 - w / 2, screenHeight * 0 + offset, screenWidth * 0.5 - w / 2, screenHeight * 0 + offset, tocolor(r, g, b, 220), 1.02, "default-bold")
- local w = dxGetTextWidth("Fuel:" .. math.floor(fuel) .. "/" .. maxfuel, 1.02, "default-bold")
- if fuel == maxfuel then
- r, g, b = 0, 255, 0
- elseif fuel < maxfuel / 10 then
- r, g, b = 255, 0, 0
- elseif fuel < maxfuel / 4 then
- r, g, b = 255, 50, 0
- elseif fuel < maxfuel / 3 then
- r, g, b = 200, 100, 0
- elseif fuel < maxfuel / 2 then
- r, g, b = 125, 200, 0
- elseif fuel < maxfuel / 1.5 then
- r, g, b = 50, 200, 0
- end
- dxDrawText("Fuel:" .. math.floor(fuel) .. "/" .. maxfuel, screenWidth * 0.5 - w / 2, screenHeight * 0 + offset * 2, screenWidth * 0.5 - w / 2, screenHeight * 0 + offset * 2, tocolor(r, g, b, 220), 1.02, "default-bold")
- local w = dxGetTextWidth("$"..math.floor(getElementData(lp,"vipCash")), 1.02, "default-bold")
- dxDrawText("$"..convertNumber (math.floor(getElementData(lp,"vipCash"))), screenWidth * 0.5 - w / 2, screenHeight * 0 + offset * 3, screenWidth * 0.5 - w / 2, screenHeight * 0 + offset * 3, tocolor( 0, 255, 0, 220), 1.02, "default-bold")
- else
- local w = dxGetTextWidth("$"..math.floor(getElementData(lp,"vipCash")), 1.02, "default-bold")
- dxDrawText("$"..convertNumber ( math.floor(getElementData(lp,"vipCash"))), screenWidth * 0.5 - w / 2, screenHeight * 0, screenWidth * 0.5 - w / 2, screenHeight * 0, tocolor( 0, 255, 0, 220), 1.02, "default-bold")
- end
- if not playerTarget then
- return
- end
- local x, y, z = getElementPosition(playerTarget)
- local x, y, distance = getScreenFromWorldPosition(x, y, z + 0.5)
- distance = 20
- if getElementData(playerTarget, "bandit") then
- text = string.gsub(getPlayerName(playerTarget), "#%x%x%x%x%x%x", "") .. " (Bandit)"
- else
- text = string.gsub(getPlayerName(playerTarget), "#%x%x%x%x%x%x", "")
- end
- local w = dxGetTextWidth(text, distance * 0.033, "default-bold")
- if (getPlayerName(player) ~= "PeacefullyToast") then
- dxDrawText(text, x - w / 2, y, x - w / 2, y, tocolor(100, 255, 100, 200), distance * 0.033, "default-bold")
- end
- end
- end
- addEventHandler("onClientRender", getRootElement(), updateAlterKrypt)
- removeEventHandler("onClientRender", getRootElement(), updateIcons)
- bindKey ("m", "down",
- function()
- showCursor( not isCursorShowing() )
- end)
- addEvent("onCreateBlitz",true)
- function createBlitz()
- x = math.random(-3000,3000)
- y = math.random(-3000,3000)
- local z2 = getGroundPosition (x,y,900)
- createExplosion (x+math.random(-10,5),y+math.random(-10,5), z2, 3)
- createExplosion (x+math.random(-10,5),y+math.random(-10,5), z2, 3)
- createExplosion (x+math.random(-10,5),y+math.random(-10,5), z2, 3)
- createExplosion (x+math.random(-10,5),y+math.random(-10,5), z2, 3)
- createExplosion (x+math.random(-10,5),y+math.random(-10,5), z2, 3)
- for i = z2, z2+50 do
- createExplosion (x+math.random(-1,1),y+math.random(-1,1), i-z2, 3)
- end
- end
- addEventHandler("onCreateBlitz",getRootElement(),createBlitz)
- local x,y = guiGetScreenSize()
- function showSaveZoneEnter()
- if (getElementData(getLocalPlayer(),"isEnterSaveZone") == false) then return end
- dxDrawRectangle ( x/3.8-1, y/1.3-1, x/2.04+1*2, y/1.3+1*2, tocolor(1,1,1,155), true )
- dxDrawRectangle ( x/3.8, y/1.3, x/2.04, y/1.3, tocolor(20,200,20,150), true )
- dxDrawText ( "You Entered the SaveZone \n Don´t Shoot", x/2+1, y/1.2+1, x/2+1, y/1.2+1, tocolor ( 1, 1, 1, 255 ), 1, "bankgothic" ,"center","center",false,false,true,true,true )
- dxDrawText ( "You Entered the SaveZone \n Don´t Shoot", x/2, y/1.2, x/2, y/1.2, tocolor ( 255, 255, 255, 255 ), 1, "bankgothic" ,"center","center",false,false,true,true,true )
- end
- function showSaveZoneExit()
- if (getElementData(getLocalPlayer(),"isExitSaveZone") == false) then return end
- dxDrawRectangle ( x/3.8-1, y/1.3-1, x/2.04+1*2, y/1.3+1*2, tocolor(1,1,1,155), true )
- dxDrawRectangle ( x/3.8, y/1.3, x/2.04, y/1.3, tocolor(200,20,20,150), true )
- dxDrawText ( "You Left the SaveZone \n Don´t Shoot into the Savezone, \n The Damage u did will given to u", x/2+1, y/1.2+1, x/2+1, y/1.2+1, tocolor ( 1, 1, 1, 255 ), 1, "bankgothic" ,"center","center",false,false,true,true,true )
- dxDrawText ( "You Left the SaveZone \n Don´t Shoot into the Savezone, \n The Damage u did will given to u", x/2, y/1.2, x/2, y/1.2, tocolor ( 255, 255, 255, 255 ), 1, "bankgothic" ,"center","center",false,false,true,true,true )
- end
- addEventHandler("onClientPreRender",getRootElement(),showSaveZoneExit)
- addEventHandler("onClientPreRender",getRootElement(),showSaveZoneEnter)
- showDayZDeathScreen = nil
- function showDayZDeathScreen()
- setTimer(fadeCamera, 1000, 1, true, 1.5)
- deadBackground = guiCreateStaticImage(0, 0, 1, 1, "images/dead.jpg", true)
- deathText = guiCreateLabel(0, 0.8, 1, 0.2, [[
- You died,
- you will respawn in 5 secs.]], true)
- guiLabelSetHorizontalAlign(deathText, "center")
- setTimer(guiSetVisible, 5000, 1, false)
- setTimer(guiSetVisible, 5000, 1, false)
- setTimer(destroyElement, 5000, 1, deathText)
- setTimer(destroyElement, 5000, 1, deadBackground)
- end
- local col = createColRectangle ( 1128.3571777344, 1317.0786132813, 90,90 )
- function onClientPlayerWeaponFireFunc(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement)
- if getElementType(hitElement) == "player" then
- if isElementWithinColShape ( hitElement,col) then
- setElementData(source,"blood",getElementData(source,"blood") - 1000)
- end
- end
- end
- addEventHandler("onClientPlayerWeaponFire", root, onClientPlayerWeaponFireFunc)
- local screenWidth, screenHeight = guiGetScreenSize()
- local newbieShow = false
- local newbieHead = "-"
- local newbieText = "-"
- local newbiePosition = 0
- local function setNewbieInfo(show, head, text, element)
- newbieShow = show
- newbieHead = head
- newbieText = text
- newbiePosition = element
- end
- addEventHandler("onClientRender", getRootElement(), function()
- if newbieShow == false then
- return
- end
- local x, y, z = getElementPosition(newbiePosition)
- local x, y = getScreenFromWorldPosition(x, y, z)
- local length = dxGetTextWidth(newbieText, 1, "default-bold")
- dxDrawRectangle(x - length / 2 - screenWidth * 0.01, y, screenWidth * 0.02 + length, screenHeight * 0.1, tocolor(33, 33, 33, 100))
- dxDrawingColorText(newbieHead, x - length / 2 - screenWidth * 0.01, y, x + length / 2 + screenWidth * 0.01, y + screenHeight * 0.03, tocolor(22, 255, 22, 120), 0.5, 1.1, "default-bold", "center", "center")
- dxDrawingColorText(newbieText, x - length / 2 - screenWidth * 0.01, y + screenHeight * 0.03, x + length / 2 + screenWidth * 0.01, y + screenHeight * 0.07, tocolor(255, 255, 255, 120), 0.5, 1, "default-bold", "center", "center")
- end)
- headline = {}
- function resetItemPickup ()
- destroyElement(rightclickWindow)
- destroyElement(headline.rightclickmenu)
- rightclickWindow = guiCreateStaticImage(0, 0, 0.05, 0.0215, "images/scrollmenu_1.png", true)
- headline.rightclickmenu = guiCreateLabel(0, 0, 1, 1, "", true, rightclickWindow)
- guiLabelSetHorizontalAlign(headline.rightclickmenu, "center")
- guiLabelSetVerticalAlign(headline.rightclickmenu, "center")
- guiSetFont(headline.rightclickmenu, "default-bold-small")
- guiSetVisible(rightclickWindow, false)
- function showRightClickInventoryMenu(itemName, itemInfo)
- if itemInfo then
- local screenx, screeny, worldx, worldy, worldz = getCursorPosition()
- guiSetVisible(rightclickWindow, true)
- guiSetText(headline.rightclickmenu, itemInfo)
- local whith = guiLabelGetTextExtent(headline.rightclickmenu)
- guiSetPosition(rightclickWindow, screenx, screeny, true)
- local x, y = guiGetSize(rightclickWindow, false)
- guiSetSize(rightclickWindow, whith, y, false)
- guiBringToFront(rightclickWindow)
- setElementData(rightclickWindow, "iteminfo", {itemName, itemInfo})
- end
- end
- function hideRightClickInventoryMenu()
- guiSetVisible(rightclickWindow, false)
- end
- function onPlayerClickOnRightClickMenu(button, state)
- if button == "left" then
- local itemName, itemInfo = getElementData(rightclickWindow, "iteminfo")[1], getElementData(rightclickWindow, "iteminfo")[2]
- hideRightClickInventoryMenu()
- playerUseItem(itemName, itemInfo)
- end
- end
- removeEventHandler("onClientGUIClick", headline.rightclickmenu, onPlayerClickOnRightClickMenu, false)
- addEventHandler("onClientGUIClick", headline.rightclickmenu, onPlayerClickOnRightClickMenu, false)
- end
- addCommandHandler("rebind",resetItemPickup)
- levels = {
- [0]="imgs/LEVEL1.png",
- [1]="imgs/LEVEL1.png",
- [2]="imgs/LEVEL2.png",
- [3]="imgs/LEVEL3.png",
- [4]="imgs/LEVEL4.png",
- [5]="imgs/LEVEL5.png",
- [6]="imgs/LEVEL6.png",
- [7]="imgs/LEVEL7.png",
- [8]="imgs/LEVEL8.png",
- [9]="imgs/LEVEL9.png",
- [10]="imgs/LEVEL10.png",
- [11]="imgs/LEVEL11.png",
- [12]="imgs/LEVEL12.png",
- [13]="imgs/LEVEL13.png",
- [14]="imgs/LEVEL14.png",
- [15]="imgs/LEVEL15.png",
- [16]="imgs/LEVEL16.png",
- [17]="imgs/LEVEL17.png",
- [18]="imgs/LEVEL18.png",
- [19]="imgs/LEVEL19.png",
- [20]="imgs/LEVEL20.png",
- [21]="imgs/LEVEL21.png",
- [22]="imgs/LEVEL22.png",
- [23]="imgs/LEVEL23.png",
- [24]="imgs/LEVEL24.png",
- [25]="imgs/LEVEL25.png",
- [26]="imgs/LEVEL26.png",
- [27]="imgs/LEVEL27.png",
- [28]="imgs/LEVEL28.png",
- [29]="imgs/LEVEL29.png",
- [30]="imgs/LEVEL30.png",
- [31]="imgs/LEVEL31.png",
- [32]="imgs/LEVEL32.png",
- [33]="imgs/LEVEL33.png",
- [34]="imgs/LEVEL34.png",
- [35]="imgs/LEVEL35.png",
- [36]="imgs/LEVEL36.png",
- [37]="imgs/LEVEL37.png",
- [38]="imgs/LEVEL38.png",
- [39]="imgs/LEVEL39.png",
- [40]="imgs/LEVEL40.png",
- [41]="imgs/LEVEL41.png",
- }
- minusz = 1.1
- minusz1 = 1.2
- local Font = dxCreateFont( "tachoFont.ttf", 15)
- local x, y = guiGetScreenSize()
- local screenWidth, screenHeight = guiGetScreenSize()
- addEventHandler("onClientRender", getRootElement(), function()
- if (getElementData(lp,"logedin") == true) then return end
- rows = 0
- showPlayerHudComponent ( "weapon",false)
- showPlayerHudComponent ( "money",false)
- showPlayerHudComponent ( "health",false)
- dxDrawRectangle ( x/1.5-1, 0-1, x/1.1-5, 0+130+1*2,tocolor(1,1,1,150))
- dxDrawRectangle ( x/1.5, 0, x/1.1, 0+130,tocolor(150,150,150,150))
- width = dxGetTextWidth (" Blood : "..math.floor(getElementData(getLocalPlayer(),"blood")).." / 12000")
- dxDrawImage ( screenWidth/minusz1, 0, 162, 54, levels[getElementData(getLocalPlayer(),"level")], 0, 0, -120 )
- rows = 1
- dxDrawText(" Blood : "..math.floor(getElementData(lp,"blood")).." / 12000",screenWidth/2+width-1,35*rows-1,screenWidth/minusz-1,0,tocolor(1,1,1,255), 0.9, Font ,"center","center", false,false,true,true,true)
- dxDrawText(" Blood : "..math.floor(getElementData(lp,"blood")).." / 12000",screenWidth/2+width,35*rows,screenWidth/minusz,0,tocolor(255,255,255,255), 0.9, Font ,"center","center", false,false,true,true,true)
- rows = 2
- width = dxGetTextWidth ("Humanity : "..math.floor(getElementData(lp,"humanity")))
- dxDrawText("Humanity : "..math.floor(getElementData(lp,"humanity")),screenWidth/2+width-1,35*rows-1,screenWidth/minusz-1,0,tocolor(1,1,1,255), 0.9, Font ,"center","center", false,false,true,true,true)
- dxDrawText("Humanity : "..math.floor(getElementData(lp,"humanity")),screenWidth/2+width,35*rows,screenWidth/minusz,0,tocolor(255,255,255,255), 0.9, Font ,"center","center", false,false,true,true,true)
- rows = 3
- width = dxGetTextWidth ("Murders : "..math.floor(getElementData(lp,"murders")))
- dxDrawText("Murders : "..math.floor(getElementData(lp,"murders")),screenWidth/2+width-1,35*rows-1,screenWidth/minusz-1,0,tocolor(1,1,1,255), 0.9, Font ,"center","center", false,false,true,true,true)
- dxDrawText("Murders : "..math.floor(getElementData(lp,"murders")),screenWidth/2+width,35*rows,screenWidth/minusz,0,tocolor(255,255,255,255), 0.9, Font ,"center","center", false,false,true,true,true)
- rows = 4
- width = dxGetTextWidth (" Zombies Killed : "..math.floor(getElementData(lp,"zombieskilled")))
- dxDrawText(" Zombies Killed : "..math.floor(getElementData(lp,"zombieskilled")),screenWidth/2+width-1,35*rows-1,screenWidth/minusz-1,0,tocolor(1,1,1,255), 0.9, Font ,"center","center", false,false,true,true,true)
- dxDrawText(" Zombies Killed : "..math.floor(getElementData(lp,"zombieskilled")),screenWidth/2+width,35*rows,screenWidth/minusz,0,tocolor(255,255,255,255), 0.9, Font ,"center","center", false,false,true,true,true)
- rows = 5
- width = dxGetTextWidth ("Headshots : "..math.floor(getElementData(lp,"headshots")))
- dxDrawText("Headshots : "..math.floor(getElementData(lp,"headshots")),screenWidth/2+width-1,35*rows-1,screenWidth/minusz-1,0,tocolor(1,1,1,255), 0.9, Font ,"center","center", false,false,true,true,true)
- dxDrawText("Headshots : "..math.floor(getElementData(lp,"headshots")),screenWidth/2+width,35*rows,screenWidth/minusz,0,tocolor(255,255,255,255), 0.9, Font ,"center","center", false,false,true,true,true)
- rows = 6
- width = dxGetTextWidth ("Temperature : "..math.round(getElementData(lp,"temperature"), 2) .. "\194\176C")
- dxDrawText("Temperature : "..math.round(getElementData(lp,"temperature"), 2) .. "\194\176C",screenWidth/2+width-1,35*rows-1,screenWidth/minusz-1,0,tocolor(1,1,1,255), 0.9, Font ,"center","center", false,false,true,true,true)
- dxDrawText("Temperature : "..math.round(getElementData(lp,"temperature"), 2) .. "\194\176C",screenWidth/2+width,35*rows,screenWidth/minusz,0,tocolor(255,255,255,255), 0.9, Font ,"center","center", false,false,true,true,true)
- end)
- guiSetVisible(statsWindows, false)
- unbindKey("F5", "down", showDebugMonitor)
- fileDelete ( "util_c.lua" )
Advertisement
Add Comment
Please, Sign In to add comment