Well guys i was working in this code so my question is
[CODE]function ENT:Draw()
self:DrawModel()
local pos = self:EyePos()
local ang = self:GetAngles()
pos.z = pos.z - 2
pos = pos:ToScreen()
pos.y = pos.y - 22
surface.SetFont("MenuLarge")
local e = LocalPlayer():GetEyeTrace()
local d = LocalPlayer():GetPos()
if IsValid(e.Entity) and e.Entity:GetPos():Distance(d) < 250 then
cam.Start2D();
draw.DrawText("Regular Money Printer", "MenuLarge", pos.x + 3, pos.y-4, Color(0, 0, 0, 255), TEXT_ALIGN_CENTER)
draw.DrawText("Regular Money Printer", "MenuLarge", pos.x + 2, pos.y-5, Color(255, 255, 255, 255), TEXT_ALIGN_CENTER)
cam.End2D();
end
end[/CODE]
So with that code i get this result [IMG]http://i.imgur.com/5bE2u8n.jpg[/IMG]
so the point is... when i aim 1 of these the name text show in both, here a really example what i want...
[IMG]http://i.imgur.com/XMWndha.jpg[/IMG]
EDIT: I got this picture from another server...
if IsValid(e.Entity) and self.Entity == e.Entity and e.Entity:GetPos():Distance(d) < 250 then
Sorry, you need to Log In to post a reply to this thread.