Guest User

Untitled

a guest
Apr 17th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.01 KB | None | 0 0
  1. surface.CreateFont("Font", {
  2. font="Arial",
  3. size=15,
  4. weight=50,
  5. antialias=true
  6. })
  7.  
  8. local function DrawText(strText, strFont, tblColor, xPos, yPos)
  9. draw.SimpleTextOutlined(strText, strFont, xPos, yPos, tblColor, TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER, 1, Color(0, 0, 0, 255))
  10. end
  11.  
  12. local function DrawAdminESP()
  13. for k, v in pairs(ents.GetAll()) do
  14. if(!IsValid(v)) then continue end
  15. if(v:IsPlayer()) then
  16. if(v != LocalPlayer() and v:GetPos():Distance(LocalPlayer():GetPos()) < 2000) then
  17. xPos, yPos = (v:GetPos() + Vector(0, 0, 50)):ToScreen().x, (v:GetPos() + Vector(0, 0, 50)):ToScreen().y
  18.  
  19. DrawText(v:Nick(), "Font", team.GetColor(v:Team()), xPos, yPos)
  20.  
  21. yPos = yPos + 13
  22.  
  23. DrawText(v:SteamID(), "Font", Color(255, 255, 255, 255), xPos, yPos)
  24.  
  25. weapon = v:GetActiveWeapon()
  26. if IsValid(weapon) then
  27. yPos = yPos + 13
  28. DrawText( weapon:GetPrintName() , "Font", Color(255, 255, 255, 255), xPos, yPos)
  29. end
  30.  
  31. for k, weapon in pairs(v:GetWeapons()) do
  32. weapon = weapon:GetPrintName()
  33. yPos = yPos + 13
  34. DrawText( weapon or weapon , "Font", Color(255, 255, 255, 50), xPos, yPos)
  35. end
  36. end
  37. end
  38. end
  39. end
  40. hook.Add("HUDPaint", "DrawAdminESP", DrawAdminESP)
  41.  
  42.  
  43. hook.Add("PostDrawTranslucentRenderables", "DrawAdminESP2", function()
  44. cam.IgnoreZ(true)
  45. for k,v in pairs(ents.GetAll()) do
  46. if(v:IsPlayer() or v:IsRagdoll()) then
  47. v:DrawModel()
  48. end
  49. end
  50. cam.IgnoreZ(false)
  51. end)
  52.  
  53. function PLAYER:GetRPName()
  54. if self.RealFirstName then
  55. return self:GetFirstName() .. " " .. self:GetLastName()
  56. end
  57. return '"'..self:GetName()..'"'
  58. end
  59.  
  60. function PLAYER:getPlayerDetails()
  61. return self:GetName() .. "|" .. self:SteamID() .. "|" .. self:GetRPName()
  62. end
  63.  
  64. function PLAYER:HasPermission(x)
  65. return not x == "rankcolor"
  66. end
  67.  
  68. function BoneMerging:Reattach(entIndex)
  69. if not BoneMerging.MergedEntities then return end
  70. end
  71.  
  72. RunConsoleCommand("con_filter_enable","1")
  73. RunConsoleCommand("con_filter_text_out", "mod_studio")
Add Comment
Please, Sign In to add comment