SHARE
TWEET

Untitled

a guest Aug 12th, 2017 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. KDAnzeigen = false
  2. local gangwarkills = vioClientGetElementData("GangwarKills")
  3. local gangwartode = vioClientGetElementData("GangwarTode")
  4. -- local anzeigen = tostring getElementData ( localPlayer, "deaths" )
  5. function KDAnzeige(player)
  6.     lp = getLocalPlayer()
  7.     dxDrawImage(10, 306, 225, 180, ":guieditor/images/black.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
  8.     dxDrawText("K / D", 10, 289, 235, 308, tocolor(255, 255, 255, 255), 0.90, "pricedown", "center", "center", false, false, true, false, false)
  9.     dxDrawImage(10, 287, 225, 19, ":guieditor/images/green.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
  10.     dxDrawText("Kill :", 20, 346, 80, 367, tocolor(255, 255, 255, 255), 0.80, "pricedown", "left", "center", false, false, false, false, false)
  11.     dxDrawText("Death :", 20, 367, 80, 388, tocolor(255, 255, 255, 255), 0.80, "pricedown", "left", "center", false, false, false, false, false)
  12.     dxDrawText("Hier findest du deine\nStatistik für K / D", 9, 308, 235, 341, tocolor(255, 255, 255, 255), 0.60, "pricedown", "center", "top", false, false, false, false, false)
  13.     dxDrawText("Gangwar Kill :", 19, 414, 162, 437, tocolor(255, 255, 255, 255), 0.80, "pricedown", "left", "center", false, false, false, false, false)
  14.     dxDrawText("Gangwar Death :", 19, 437, 185, 460, tocolor(255, 255, 255, 255), 0.80, "pricedown", "left", "center", false, false, false, false, false)
  15.     dxDrawText("K / D  :", 20, 388, 80, 409, tocolor(255, 255, 255, 255), 0.80, "pricedown", "left", "center", false, false, false, false, false)
  16.     dxDrawText("Gangwar K / D  :", 19, 460, 168, 486, tocolor(255, 255, 255, 255), 0.80, "pricedown", "left", "center", false, false, false, false, false)
  17.     -- dxDrawText KD Anzeige
  18.     -- dxDrawText(vioClientGetElementData("Tode"), 70, 346, 177, 367, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  19.     -- local deaths =
  20.     outputChatBox(tostring(isElement(lp)) .. " " .. tostring(lp == localPlayer))
  21. outputChatBox(getElementData(lp,"Tode"))
  22.     dxDrawText( getElementData(lp,"Tode"), 86, 367, 193, 388, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  23.     -- dxDrawText(math.floor(kills / tode * 100), 100, 90, 388, 197, 409, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  24.     -- dxDrawText(vioClientGetElementData("GangwarKills"), 162, 414, 231, 437, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  25.     -- dxDrawText(vioClientGetElementData("GangwarTode"), 185, 437, 231, 460, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  26.     -- dxDrawText(math.floor(vioClientGetElementData("GangwarTode") /vioClientGetElementData("GangwarKills") * 100), 168, 460, 235, 486, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  27.    
  28.     -- dxDrawLine
  29.     dxDrawLine(9, 287, 9, 489, tocolor(255, 255, 255, 255), 2, false)
  30.     dxDrawLine(235, 287, 235, 489, tocolor(255, 255, 255, 255), 2, false)
  31.     dxDrawLine(9, 488, 235, 488, tocolor(255, 255, 255, 255), 2, false)
  32.     dxDrawLine(9, 287, 235, 287, tocolor(255, 255, 255, 255), 2, false)
  33. end
  34.  
  35. function KDAnzeigeStatus()
  36.     if KDAnzeigen == false then
  37.         addEventHandler("onClientRender",root,KDAnzeige)
  38.     else
  39.         removeEventHandler("onClientRender",root,KDAnzeige)
  40.     end
  41. end
  42. addCommandHandler("kd",KDAnzeigeStatus)
RAW Paste Data
Top