Msg("Entity Finder by end360 Loaded.")
concommand.Add( "entityfind", function( ply, cmd, args )
Class=args[1]
CreateClientConVar( "entity_finder_on", 1, true, false )
function EntityFinder()
if GetConVarNumber( "entity_finder_on" ) >= 1 and Class then
for k, v in pairs( ents.FindByClass( Class ) ) do
DrugPos = v:GetPos():ToScreen()
draw.SimpleText( Class, "EntityFont", DrugPos.x, DrugPos.y, Color( 0, 200, 255, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
end
end
end
hook.Add( "HUDPaint", "EntityFinder", EntityFinder )
local tblFonts = { }
tblFonts["EntityFont"] = {
font = "Tahoma",
size = 11,
weight = 0,
shadow = true,
}
for k,v in SortedPairs( tblFonts ) do
surface.CreateFont( k, tblFonts[k] );
end
end)

