Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. local toggle = CreateClientConVar("toggle_wallhacks", 1, true, false)
  2.  
  3. T = 0
  4.  
  5. function NamePlates()
  6. if toggle:GetInt() == 1 then
  7. for k, v in pairs(player.GetAll()) do
  8. local pos = (v:GetPos() + Vector(0, 0, 85)):ToScreen()
  9. if v != me then
  10. draw.SimpleText(v:Nick(), "ScoreboardText", pos.x, pos.y, Color(255, 0, 0, 200), TEXT_ALIGN_CENTER)
  11. end
  12. end
  13. end
  14. end
  15. hook.Add("HUDPaint", "Unique Hook Name", NamePlates)
  16.  
  17. concommand.Add("+wallhacks", function()
  18. LocalPlayer():ConCommand("toggle_wallhacks 1")
  19. end)
  20.  
  21. concommand.Add("-wallhacks", function()
  22. LocalPlayer():ConCommand("toggle_wallhacks 0")
  23. end)
  24.  
  25. local function Tog()
  26. LocalPlayer():ConCommand("toggle_wallhacks 1")
  27. T = 1
  28. if (T == 1) then
  29. LocalPlayer():ConCommand("toggle_wallhacks 0")
  30. end
  31. end
  32. concommand.Add("esp_tog", Tog)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement