Advertisement
Guest User

Untitled

a guest
May 5th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. hook.Add("HUDPaint", "", function()
  2. for k,v in pairs(player.GetAll()) do
  3. if(GetConVarNumber("esp") == 1) then
  4. if(v != ply && v:Health() >= 1 && !v:IsDormant()) then
  5. if(v:GetFriendStatus() == "Friend") then
  6. ESP_COLOR = Color(102,255,51)
  7. elseif(v:GetFriendStatus() != "Friend") then
  8. ESP_COLOR = Color(255,255,255)
  9. if(v:IsBot()) then
  10. ESP_COLOR = Color(51,204,255)
  11. end
  12. if(table.HasValue(Staff,v:GetUserGroup())) then
  13. ESP_COLOR = Color(255,51,204)
  14. end
  15. if(table.HasValue(Donators,v:GetUserGroup())) then
  16. ESP_COLOR = Color(255,255,255)
  17. end
  18.  
  19. local name = v:Nick()
  20. local weapon = v:GetActiveWeapon():GetClass()
  21. local rank = v:GetUserGroup()
  22. local health = v:Health()
  23. local armor = v:Armor()
  24. local pos = (v:GetPos() + Vector(0,0,60)):ToScreen()
  25.  
  26. draw.SimpleText("N: "..name, "DebugFixedSmall", pos.x, pos.y, ESP_COLOR, TEXT_ALIGN_LEFT, 1)
  27. draw.SimpleText("H: "..health, "DebugFixedSmall", pos.x, pos.y + 15, ESP_COLOR, TEXT_ALIGN_LEFT, 1)
  28. draw.SimpleText("W: "..weapon, "DebugFixedSmall", pos.x, pos.y + 30, ESP_COLOR, TEXT_ALIGN_LEFT, 1)
  29. draw.SimpleText("R: "..rank, "DebugFixedSmall", pos.x, pos.y + 45, ESP_COLOR, TEXT_ALIGN_LEFT, 1)
  30.  
  31. end
  32. end
  33. end
  34. end
  35. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement