@name Player Finder
@persist T:entity
interval(100)
if(first())
{
    runOnChat(1)
    holoCreate(1)
    holoModel(1,"hq_cone")
    holoDisableShading(1,1)
}

if(changed(players():count()))
{
    holoVisible(1,players(),0)
    holoVisible(1,owner(),1)
}

if(chatClk(owner()))
{
    local LS = owner():lastSaid():lower():explode(" ")
    if(LS[1,string]=="-t")
    {
        hideChat(1)
        local TE = findPlayerByName(LS[2,string])
        if(TE:isValid())
        {
            T = TE
            hint("Valid player!",3)
        }
    }
}

if(T:isValid())
{
    holoPos(1,vec(0,0,25)+owner():shootPos()+owner():eye()*75)
    holoAng(1,ang(90,0,0)+(T:pos()-owner():pos()):toAngle())
}
