Advertisement
Guest User

Untitled

a guest
Oct 1st, 2014
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. function ENT:Draw()
  2.  
  3. self.Entity:DrawModel()
  4.  
  5. local Name = LocalPlayer():Nick()
  6. local lpos = LocalPlayer():GetPos()
  7. local entity = LocalPlayer():GetEyeTrace().Entity
  8.  
  9.  
  10. if entity:IsValid() and lpos:Distance( entity:GetPos() ) < 160 then
  11.  
  12. local p
  13.  
  14. local ang = LocalPlayer():EyeAngles()
  15. --local health = self.health
  16. --local printName = self.Entity:GetName()
  17.  
  18. p = entity:GetPos() + Vector(10,0,78) -- + math.sin(CurTime()*3))
  19.  
  20. for _,yaw in pairs({0, 180}) do
  21.  
  22. local ang = LocalPlayer():EyeAngles()
  23.  
  24.  
  25. cam.Start3D2D(p, Angle( 0, ang.y - 90, 90 ), 0.1)
  26.  
  27. draw.RoundedBox( 8, -200 - 50, 440 + 100, 190 + 20 * 2, 130, Color( 50, 50, 50, 255 ) ) --Box
  28. --draw.RoundedBox( 4, -246, 404, 492, 292, Color( 48, 96, 139, 255 ) )
  29. draw.RoundedBox( 4, -182 - 50, 460 + 20 + 100, 160 + 15 * 2, 1, Color( 255, 255, 255, 255 ) ) --Underline
  30. draw.RoundedBox( 4, -182 - 50, 500 + 1 + 100, 160 + 15 * 2, 20, Color( 255, 0, 0, 255) ) --Health Bar
  31. draw.DrawText( "Health", "otherstuf", -182 - 50, 500 + 20 + 76, Color( 255, 255, 255, 255) ) --Health Text
  32. draw.DrawText( "City", "otherstuf", -210, 400 + 70 + 160, Color(255, 255, 255, 255), TEXT_ALIGN_CENTER) --Ent Name
  33. draw.DrawText(Name, "watevrstuf", -135, 400 + 40 + 100, Color(255, 255, 255, 255), TEXT_ALIGN_CENTER) --Owner's Name
  34.  
  35. cam.End3D2D()
  36. end
  37. end
  38. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement