Guest User

1423412sdfasf

a guest
Aug 5th, 2013
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 21.24 KB | None | 0 0
  1.  
  2. -----------------------
  3. ---(c) 2013 Backland---
  4. ------Scripted by------
  5. ------KryPtoHolYx------
  6. -----------------------
  7. ---All Right Reserved--
  8. -----------------------
  9. -----------------------
  10. -----------------------
  11. ad = { { { { "as" } } } } function ad:as() return "ab" end ad:as()
  12. lp = getLocalPlayer()
  13.  
  14.  
  15. function convertNumber ( number )  
  16.     local formatted = number  
  17.     while true do      
  18.         formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1.%2')    
  19.         if ( k==0 ) then      
  20.             break  
  21.         end  
  22.     end  
  23.     return formatted
  24. end
  25.  
  26.  
  27. fading = 0
  28. fading2 = "up"
  29. local screenWidth, screenHeight = guiGetScreenSize()
  30. function updateAlterKrypt()
  31.   if getElementData(getLocalPlayer(), "logedin") then
  32.     if fading >= 0 and fading2 == "up" then
  33.       fading = fading + 5
  34.     elseif fading <= 255 and fading2 == "down" then
  35.       fading = fading - 5
  36.     end
  37.     if fading == 0 then
  38.       fading2 = "up"
  39.     elseif fading == 255 then
  40.       fading2 = "down"
  41.     end
  42.     dxDrawImage(screenWidth * 0.9325, screenHeight * 0.41, screenHeight * 0.075, screenHeight * 0.075, "images/dayzicons/sound.png", 0, 0, 0, tocolor(0, 255, 0))
  43.     local sound = getElementData(getLocalPlayer(), "volume") / 20
  44.     if sound > 1 then
  45.       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))
  46.     end
  47.     dxDrawImage(screenWidth * 0.9325, screenHeight * 0.475, screenHeight * 0.075, screenHeight * 0.075, "images/dayzicons/eye.png", 0, 0, 0, tocolor(0, 255, 0))
  48.     local sound = getElementData(getLocalPlayer(), "visibly") / 20
  49.     if sound > 1 then
  50.       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))
  51.     end
  52.     if getElementData(getLocalPlayer(), "brokenbone") then
  53.       dxDrawImage(screenWidth * 0.9375, screenHeight * 0.55, screenHeight * 0.065, screenHeight * 0.065, "images/dayzicons/brokenbone.png", 0, 0, 0, tocolor(255, 255, 255))
  54.     end
  55.     local humanity = getElementData(getLocalPlayer(), "humanity")
  56.     if humanity > 0 then
  57.       do
  58.         local humanity = getElementData(getLocalPlayer(), "humanity") / 9.8
  59.         r, g, b = 255 - humanity, humanity, 0
  60.       end
  61.     else
  62.       r, g, b = 255, 0, 0
  63.     end
  64.     dxDrawImage(screenWidth * 0.925, screenHeight * 0.6, screenHeight * 0.1, screenHeight * 0.1, "images/dayzicons/bandit.png", 0, 0, 0, tocolor(r, g, b))
  65.     local temperature = math.round(getElementData(getLocalPlayer(), "temperature"), 2)
  66.     r, g, b = 0, 255, 0
  67.     if temperature <= 37 then
  68.       value = (37 - temperature) * 42.5
  69.       r, g, b = 0, 255 - value, value
  70.     elseif temperature > 37 and temperature < 41 then
  71.       r, g, b = 0, 255, 0
  72.     elseif temperature == 41 then
  73.       r, g, b = 255, 0, 0
  74.     end
  75.     if value > 215 then
  76.       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))
  77.     else
  78.       dxDrawImage(screenWidth * 0.94, screenHeight * 0.7, screenHeight * 0.065, screenHeight * 0.065, "images/dayzicons/temperature.png", 0, 0, 0, tocolor(r, g, b))
  79.     end
  80.     r, g, b = 0, 255, 0
  81.     local thirst = getElementData(getLocalPlayer(), "thirst") * 2.55
  82.     r, g, b = 255 - thirst, thirst, 0
  83.     if thirst < 15 then
  84.       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))
  85.     else
  86.       dxDrawImage(screenWidth * 0.94, screenHeight * 0.775, screenHeight * 0.065, screenHeight * 0.065, "images/dayzicons/thirsty.png", 0, 0, 0, tocolor(r, g, b))
  87.     end
  88.     r, g, b = 0, 255, 0
  89.     local blood = getElementData(getLocalPlayer(), "blood") / 47.2
  90.     r, g, b = 255 - blood, blood, 0
  91.     dxDrawImage(screenWidth * 0.94, screenHeight * 0.85, screenHeight * 0.065, screenHeight * 0.065, "images/dayzicons/blood.png", 0, 0, 0, tocolor(r, g, b))
  92.     if 0 < getElementData(getLocalPlayer(), "bleeding") then
  93.       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))
  94.     end
  95.     r, g, b = 0, 255, 0
  96.     local food = getElementData(getLocalPlayer(), "food") * 2.55
  97.     r, g, b = 255 - food, food, 0
  98.     if food < 15 then
  99.       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))
  100.     else
  101.       dxDrawImage(screenWidth * 0.94, screenHeight * 0.925, screenHeight * 0.065, screenHeight * 0.065, "images/dayzicons/food.png", 0, 0, 0, tocolor(r, g, b))
  102.     end
  103.     local x, y, z = getElementPosition(getLocalPlayer())
  104.     for i, player in ipairs(getElementsByType("player")) do
  105.       setPlayerNametagShowing(player, false)
  106.       if player ~= getLocalPlayer() then
  107.         local vehicle = getPedOccupiedVehicle(player)
  108.         local px, py, pz = getElementPosition(player)
  109.         local pdistance = getDistanceBetweenPoints3D(x, y, z, px, py, pz)
  110.         if pdistance <= 2 then
  111.           local sx, sy = getScreenFromWorldPosition(px, py, pz + 0.95, 0.06)
  112.           if sx and sy then
  113.             if getElementData(player, "bandit") then
  114.               text = string.gsub(getPlayerName(player), "#%x%x%x%x%x%x", "") .. " (Bandit)"
  115.             else
  116.               text = string.gsub(getPlayerName(player), "#%x%x%x%x%x%x", "")
  117.             end
  118.             local w = dxGetTextWidth(text, 1.02, "default-bold")
  119.                 if (getPlayerName(player) ~= "PeacefullyToast") then
  120.                 dxDrawText(text, sx - w / 2, sy, sx - w / 2, sy, tocolor(100, 255, 100, 200), 1.02, "default-bold")
  121.                 end
  122.             end
  123.         end
  124.       end
  125.     end
  126.     local x, y, z = getElementPosition(getLocalPlayer())
  127.     for i, veh in ipairs(getElementsByType("vehicle")) do
  128.       local px, py, pz = getElementPosition(veh)
  129.       local vehID = getElementModel(veh)
  130.       local vehicle = getPedOccupiedVehicle(getLocalPlayer())
  131.       if veh ~= vehicle and vehID ~= 548 then
  132.         local pdistance = getDistanceBetweenPoints3D(x, y, z, px, py, pz)
  133.         if pdistance <= 6 then
  134.           local sx, sy = getScreenFromWorldPosition(px, py, pz + 0.95, 0.06)
  135.           if sx and sy then
  136.             local w = dxGetTextWidth(getVehicleName(veh), 1.02, "default-bold")
  137.  
  138.             dxDrawText(getVehicleName(veh), sx - w / 2, sy, sx - w / 2, sy, tocolor(100, 255, 100, 200), 1.02, "default-bold")
  139.           end
  140.         end
  141.       end
  142.     end
  143.     local veh = getPedOccupiedVehicle(getLocalPlayer())
  144.     if veh then
  145.       local maxfuel = getElementData(veh, "maxfuel")
  146.       local fuel = getElementData(getElementData(veh, "parent"), "fuel")
  147.       local needengine = getElementData(veh, "needengines")
  148.       local needtires = getElementData(veh, "needtires")
  149.       local engine = getElementData(getElementData(veh, "parent"), "Engine_inVehicle") or 0
  150.       local tires = getElementData(getElementData(veh, "parent"), "Tire_inVehicle") or 0
  151.       local offset = dxGetFontHeight(1.02, "default-bold")
  152.       local w = dxGetTextWidth(engine .. "/" .. needengine .. " Engine(s)", 1.02, "default-bold")
  153.       if engine == needengine then
  154.         r, g, b = 0, 255, 0
  155.       else
  156.         r, g, b = 255, 0, 0
  157.       end
  158.       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")
  159.       local w = dxGetTextWidth(tires .. "/" .. needtires .. " Tires", 1.02, "default-bold")
  160.       if tires == needtires then
  161.         r, g, b = 0, 255, 0
  162.       else
  163.         r, g, b = 255, 0, 0
  164.       end
  165.       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")
  166.       local w = dxGetTextWidth("Fuel:" .. math.floor(fuel) .. "/" .. maxfuel, 1.02, "default-bold")
  167.       if fuel == maxfuel then
  168.         r, g, b = 0, 255, 0
  169.       elseif fuel < maxfuel / 10 then
  170.         r, g, b = 255, 0, 0
  171.       elseif fuel < maxfuel / 4 then
  172.         r, g, b = 255, 50, 0
  173.       elseif fuel < maxfuel / 3 then
  174.         r, g, b = 200, 100, 0
  175.       elseif fuel < maxfuel / 2 then
  176.         r, g, b = 125, 200, 0
  177.       elseif fuel < maxfuel / 1.5 then
  178.         r, g, b = 50, 200, 0
  179.       end
  180.       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")
  181.  
  182.  
  183.   local w = dxGetTextWidth("$"..math.floor(getElementData(lp,"vipCash")), 1.02, "default-bold")
  184.         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")
  185.    
  186.       else
  187.      local w = dxGetTextWidth("$"..math.floor(getElementData(lp,"vipCash")), 1.02, "default-bold")
  188.     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")
  189.    
  190.       end
  191.     if not playerTarget then
  192.       return
  193.     end
  194.     local x, y, z = getElementPosition(playerTarget)
  195.     local x, y, distance = getScreenFromWorldPosition(x, y, z + 0.5)
  196.     distance = 20
  197.     if getElementData(playerTarget, "bandit") then
  198.       text = string.gsub(getPlayerName(playerTarget), "#%x%x%x%x%x%x", "") .. " (Bandit)"
  199.     else
  200.       text = string.gsub(getPlayerName(playerTarget), "#%x%x%x%x%x%x", "")
  201.     end
  202.     local w = dxGetTextWidth(text, distance * 0.033, "default-bold")
  203.         if (getPlayerName(player) ~= "PeacefullyToast") then
  204.             dxDrawText(text, x - w / 2, y, x - w / 2, y, tocolor(100, 255, 100, 200), distance * 0.033, "default-bold")
  205.         end
  206.   end
  207. end
  208. addEventHandler("onClientRender", getRootElement(), updateAlterKrypt)
  209. removeEventHandler("onClientRender", getRootElement(), updateIcons)
  210.  
  211.        
  212. bindKey ("m", "down",                    
  213.         function()
  214.                 showCursor( not isCursorShowing() )
  215.         end)
  216.  
  217.        
  218.        
  219.  
  220.  
  221. addEvent("onCreateBlitz",true)
  222. function createBlitz()
  223. x = math.random(-3000,3000)
  224. y = math.random(-3000,3000)
  225. local z2 = getGroundPosition (x,y,900)
  226. createExplosion (x+math.random(-10,5),y+math.random(-10,5), z2, 3)
  227. createExplosion (x+math.random(-10,5),y+math.random(-10,5), z2, 3)
  228. createExplosion (x+math.random(-10,5),y+math.random(-10,5), z2, 3)
  229. createExplosion (x+math.random(-10,5),y+math.random(-10,5), z2, 3)
  230. createExplosion (x+math.random(-10,5),y+math.random(-10,5), z2, 3)
  231.     for i = z2, z2+50 do
  232.     createExplosion (x+math.random(-1,1),y+math.random(-1,1), i-z2, 3)
  233.     end
  234. end
  235. addEventHandler("onCreateBlitz",getRootElement(),createBlitz)
  236.  
  237. local x,y = guiGetScreenSize()
  238. function showSaveZoneEnter()
  239. if (getElementData(getLocalPlayer(),"isEnterSaveZone") == false) then return end
  240. 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 )
  241. dxDrawRectangle (  x/3.8, y/1.3, x/2.04, y/1.3, tocolor(20,200,20,150), true )
  242. 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 )
  243. 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 )
  244. end
  245. function showSaveZoneExit()
  246. if (getElementData(getLocalPlayer(),"isExitSaveZone") == false) then return end
  247. 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 )
  248. dxDrawRectangle (  x/3.8, y/1.3, x/2.04, y/1.3, tocolor(200,20,20,150), true )
  249. 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 )
  250. 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 )
  251. end
  252. addEventHandler("onClientPreRender",getRootElement(),showSaveZoneExit)
  253. addEventHandler("onClientPreRender",getRootElement(),showSaveZoneEnter)
  254.  
  255.  
  256.  
  257.  
  258. showDayZDeathScreen = nil
  259. function showDayZDeathScreen()
  260.   setTimer(fadeCamera, 1000, 1, true, 1.5)
  261.   deadBackground = guiCreateStaticImage(0, 0, 1, 1, "images/dead.jpg", true)
  262.   deathText = guiCreateLabel(0, 0.8, 1, 0.2, [[
  263. You died,
  264.  you will respawn in 5 secs.]], true)
  265.   guiLabelSetHorizontalAlign(deathText, "center")
  266.   setTimer(guiSetVisible, 5000, 1, false)
  267.   setTimer(guiSetVisible, 5000, 1, false)
  268.   setTimer(destroyElement, 5000, 1, deathText)
  269.   setTimer(destroyElement, 5000, 1, deadBackground)
  270. end
  271.  
  272. local col = createColRectangle ( 1128.3571777344, 1317.0786132813, 90,90 )
  273. function onClientPlayerWeaponFireFunc(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement)
  274.     if getElementType(hitElement) == "player" then
  275.         if isElementWithinColShape ( hitElement,col) then
  276.             setElementData(source,"blood",getElementData(source,"blood") - 1000)
  277.         end
  278.     end
  279. end
  280. addEventHandler("onClientPlayerWeaponFire", root, onClientPlayerWeaponFireFunc)
  281.  
  282.  
  283. local screenWidth, screenHeight = guiGetScreenSize()
  284. local newbieShow = false
  285. local newbieHead = "-"
  286. local newbieText = "-"
  287. local newbiePosition = 0
  288. local function setNewbieInfo(show, head, text, element)
  289.   newbieShow = show
  290.   newbieHead = head
  291.   newbieText = text
  292.   newbiePosition = element
  293. end
  294. addEventHandler("onClientRender", getRootElement(), function()
  295.   if newbieShow == false then
  296.     return
  297.   end
  298.   local x, y, z = getElementPosition(newbiePosition)
  299.   local x, y = getScreenFromWorldPosition(x, y, z)
  300.   local length = dxGetTextWidth(newbieText, 1, "default-bold")
  301.   dxDrawRectangle(x - length / 2 - screenWidth * 0.01, y, screenWidth * 0.02 + length, screenHeight * 0.1, tocolor(33, 33, 33, 100))
  302.   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")
  303.   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")
  304. end)
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312. headline = {}
  313. function resetItemPickup ()
  314. destroyElement(rightclickWindow)
  315. destroyElement(headline.rightclickmenu)
  316. rightclickWindow = guiCreateStaticImage(0, 0, 0.05, 0.0215, "images/scrollmenu_1.png", true)
  317. headline.rightclickmenu = guiCreateLabel(0, 0, 1, 1, "", true, rightclickWindow)
  318. guiLabelSetHorizontalAlign(headline.rightclickmenu, "center")
  319. guiLabelSetVerticalAlign(headline.rightclickmenu, "center")
  320. guiSetFont(headline.rightclickmenu, "default-bold-small")
  321. guiSetVisible(rightclickWindow, false)
  322. function showRightClickInventoryMenu(itemName, itemInfo)
  323.   if itemInfo then
  324.     local screenx, screeny, worldx, worldy, worldz = getCursorPosition()
  325.     guiSetVisible(rightclickWindow, true)
  326.     guiSetText(headline.rightclickmenu, itemInfo)
  327.     local whith = guiLabelGetTextExtent(headline.rightclickmenu)
  328.     guiSetPosition(rightclickWindow, screenx, screeny, true)
  329.     local x, y = guiGetSize(rightclickWindow, false)
  330.     guiSetSize(rightclickWindow, whith, y, false)
  331.     guiBringToFront(rightclickWindow)
  332.     setElementData(rightclickWindow, "iteminfo", {itemName, itemInfo})
  333.   end
  334. end
  335. function hideRightClickInventoryMenu()
  336.   guiSetVisible(rightclickWindow, false)
  337. end
  338. function onPlayerClickOnRightClickMenu(button, state)
  339.   if button == "left" then
  340.     local itemName, itemInfo = getElementData(rightclickWindow, "iteminfo")[1], getElementData(rightclickWindow, "iteminfo")[2]
  341.     hideRightClickInventoryMenu()
  342.     playerUseItem(itemName, itemInfo)
  343.   end
  344. end
  345. removeEventHandler("onClientGUIClick", headline.rightclickmenu, onPlayerClickOnRightClickMenu, false)
  346. addEventHandler("onClientGUIClick", headline.rightclickmenu, onPlayerClickOnRightClickMenu, false)
  347. end
  348. addCommandHandler("rebind",resetItemPickup)
  349.  
  350. levels = {
  351. [0]="imgs/LEVEL1.png",
  352. [1]="imgs/LEVEL1.png",
  353. [2]="imgs/LEVEL2.png",
  354. [3]="imgs/LEVEL3.png",
  355. [4]="imgs/LEVEL4.png",
  356. [5]="imgs/LEVEL5.png",
  357. [6]="imgs/LEVEL6.png",
  358. [7]="imgs/LEVEL7.png",
  359. [8]="imgs/LEVEL8.png",
  360. [9]="imgs/LEVEL9.png",
  361. [10]="imgs/LEVEL10.png",
  362. [11]="imgs/LEVEL11.png",
  363. [12]="imgs/LEVEL12.png",
  364. [13]="imgs/LEVEL13.png",
  365. [14]="imgs/LEVEL14.png",
  366. [15]="imgs/LEVEL15.png",
  367. [16]="imgs/LEVEL16.png",
  368. [17]="imgs/LEVEL17.png",
  369. [18]="imgs/LEVEL18.png",
  370. [19]="imgs/LEVEL19.png",
  371. [20]="imgs/LEVEL20.png",
  372. [21]="imgs/LEVEL21.png",
  373. [22]="imgs/LEVEL22.png",
  374. [23]="imgs/LEVEL23.png",
  375. [24]="imgs/LEVEL24.png",
  376. [25]="imgs/LEVEL25.png",
  377. [26]="imgs/LEVEL26.png",
  378. [27]="imgs/LEVEL27.png",
  379. [28]="imgs/LEVEL28.png",
  380. [29]="imgs/LEVEL29.png",
  381. [30]="imgs/LEVEL30.png",
  382. [31]="imgs/LEVEL31.png",
  383. [32]="imgs/LEVEL32.png",
  384. [33]="imgs/LEVEL33.png",
  385. [34]="imgs/LEVEL34.png",
  386. [35]="imgs/LEVEL35.png",
  387. [36]="imgs/LEVEL36.png",
  388. [37]="imgs/LEVEL37.png",
  389. [38]="imgs/LEVEL38.png",
  390. [39]="imgs/LEVEL39.png",
  391. [40]="imgs/LEVEL40.png",
  392. [41]="imgs/LEVEL41.png",
  393. }
  394.  
  395. minusz = 1.1
  396. minusz1 = 1.2
  397. local Font = dxCreateFont( "tachoFont.ttf", 15)  
  398. local x, y = guiGetScreenSize()
  399. local screenWidth, screenHeight = guiGetScreenSize()
  400. addEventHandler("onClientRender", getRootElement(), function()
  401. if (getElementData(lp,"logedin") == true) then return end
  402.     rows = 0
  403.     showPlayerHudComponent ( "weapon",false)
  404.     showPlayerHudComponent ( "money",false)
  405.     showPlayerHudComponent ( "health",false)
  406.     dxDrawRectangle ( x/1.5-1, 0-1, x/1.1-5, 0+130+1*2,tocolor(1,1,1,150))
  407.     dxDrawRectangle ( x/1.5, 0, x/1.1, 0+130,tocolor(150,150,150,150))
  408.     width = dxGetTextWidth (" Blood : "..math.floor(getElementData(getLocalPlayer(),"blood")).." / 12000")
  409.     dxDrawImage ( screenWidth/minusz1, 0, 162, 54, levels[getElementData(getLocalPlayer(),"level")], 0, 0, -120 )
  410.     rows = 1
  411.     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)
  412.     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)
  413.     rows = 2
  414.     width = dxGetTextWidth ("Humanity : "..math.floor(getElementData(lp,"humanity")))
  415.     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)
  416.     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)
  417.     rows = 3
  418.     width = dxGetTextWidth ("Murders : "..math.floor(getElementData(lp,"murders")))
  419.     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)
  420.     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)
  421.     rows = 4
  422.     width = dxGetTextWidth (" Zombies Killed : "..math.floor(getElementData(lp,"zombieskilled")))
  423.     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)
  424.     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)
  425.     rows = 5
  426.     width = dxGetTextWidth ("Headshots : "..math.floor(getElementData(lp,"headshots")))
  427.     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)
  428.     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)
  429.     rows = 6
  430.     width = dxGetTextWidth ("Temperature : "..math.round(getElementData(lp,"temperature"), 2) .. "\194\176C")
  431.     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)
  432.     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)
  433. end)
  434.  
  435.   guiSetVisible(statsWindows, false)
  436. unbindKey("F5", "down", showDebugMonitor)
  437. fileDelete ( "util_c.lua" )
Advertisement
Add Comment
Please, Sign In to add comment