statsLabel = {}
statsWindows = guiCreateStaticImage(0.775,0.2,0.225,0.22,"images/scrollmenu_1.png",true)
--statsWindows = guiCreateWindow(0.775,0.2,0.225,0.22,"DEBUG MONITOR",true)
guiSetAlpha(statsWindows,0.-- s8) -->
--Zombies Killed
statsLabel["zombieskilled"] = guiCreateLabel(0,0.05,1,0.15,"Zombies killed: 0",true,statsWindows)
guiLabelSetHorizontalAlign (statsLabel["zombieskilled"],"center")
guiSetFont (statsLabel["zombieskilled"], "default-bold-small" )
setElementData(statsLabel["zombieskilled"],"identifikation","zombieskilled")
--Headshots
statsLabel["headshots"] = guiCreateLabel(0,0.15,1,0.15,"Headshots: 0",true,statsWindows)
guiLabelSetHorizontalAlign (statsLabel["headshots"],"center")
guiSetFont (statsLabel["headshots"], "default-bold-small" )
setElementData(statsLabel["headshots"],"identifikation","headshots")
--Murders
statsLabel["murders"] = guiCreateLabel(0,0.25,1,0.15,"Murders: 0",true,statsWindows)
guiLabelSetHorizontalAlign (statsLabel["murders"],"center")
guiSetFont (statsLabel["murders"], "default-bold-small" )
setElementData(statsLabel["murders"],"identifikation","murders")
--Bandits Killed
statsLabel["banditskilled"] = guiCreateLabel(0,0.35,1,0.15,"Bandits killed: 0",true,statsWindows)
guiLabelSetHorizontalAlign (statsLabel["banditskilled"],"center")
guiSetFont (statsLabel["banditskilled"], "default-bold-small" )
setElementData(statsLabel["banditskilled"],"identifikation","banditskilled")
--Blood
statsLabel["blood"] = guiCreateLabel(0,0.45,1,0.15,"Blood: 12000",true,statsWindows)
guiLabelSetHorizontalAlign (statsLabel["blood"],"center")
guiSetFont (statsLabel["blood"], "default-bold-small" )
setElementData(statsLabel["blood"],"identifikation","blood")
--Zombies
statsLabel["zombies"] = guiCreateLabel(0,0.55,1,0.15,"Zombies (Alive/Total): 0/0",true,statsWindows)
guiLabelSetHorizontalAlign (statsLabel["zombies"],"center")
guiSetFont (statsLabel["zombies"], "default-bold-small" )
setElementData(statsLabel["zombies"],"identifikation","zombies")
--Temperature
statsLabel["temperature"] = guiCreateLabel(0,0.65,1,0.15,"Temperature: 37°C",true,statsWindows)
guiLabelSetHorizontalAlign (statsLabel["temperature"],"center")
guiSetFont (statsLabel["temperature"], "default-bold-small" )
setElementData(statsLabel["temperature"],"identifikation","temperature")
--Humanity
statsLabel["humanity"] = guiCreateLabel(0,0.75,1,0.15,"Humanity: 2500",true,statsWindows)
guiLabelSetHorizontalAlign (statsLabel["humanity"],"center")
guiSetFont (statsLabel["humanity"], "default-bold-small" )
setElementData(statsLabel["humanity"],"identifikation","humanity")
--Name
statsLabel["name"] = guiCreateLabel(0,0.85,1,0.15,"Name: "..getPlayerName(getLocalPlayer())), true,statsWindows)
guiLabelSetHorizontalAlign (statsLabel["name"],"center")
guiSetFont (statsLabel["name"], "default-bold-small" )
setElementData(statsLabel["name"],"identifikation","name")
function showDebugMonitor ()
local visible = guiGetVisible(statsWindows)
guiSetVisible(statsWindows,not visible)
end
bindKey("F5","down",showDebugMonitor)
function refreshDebugMonitor()
if getElementData(getLocalPlayer(),"logedin") then
local value = getElementData(getLocalPlayer(),getElementData(statsLabel["zombieskilled"],"identifikation"))
guiSetText(statsLabel["zombieskilled"],"Zombies killed: "..value)
local value = getElementData(getLocalPlayer(),getElementData(statsLabel["headshots"],"identifikation"))
guiSetText(statsLabel["headshots"],"Headshots: "..value)
local value = getElementData(getLocalPlayer(),getElementData(statsLabel["banditskilled"],"identifikation"))
guiSetText(statsLabel["banditskilled"],"Bandits killed: "..value)
local value = getElementData(getLocalPlayer(),getElementData(statsLabel["murders"],"identifikation"))
guiSetText(statsLabel["murders"],"Murders: "..value)
local value = getElementData(getLocalPlayer(),getElementData(statsLabel["blood"],"identifikation"))
guiSetText(statsLabel["blood"],"Blood: "..value)
local value = getElementData(getRootElement(),"zombiesalive") or 0
local value2 = getElementData(getRootElement(),"zombiestotal") or 0
guiSetText(statsLabel["zombies"],"Zombies (Alive/Total): "..value.."/"..value2)
local value = getElementData(getLocalPlayer(),getElementData(statsLabel["temperature"],"identifikation"))
guiSetText(statsLabel["temperature"],"Temperature: "..math.round(value,2).."°C")
local value = getElementData(getLocalPlayer(),getElementData(statsLabel["humanity"],"identifikation"))
guiSetText(statsLabel["humanity"],"Humanity: "..math.round(value,2))
guiSetText(statsLabel["name"],"Name: "..getPlayerName(getLocalPlayer())):gsub("#%x%x%x%x%x%x", "")
end
end