@name Blakes Holo
@persist Target:entity Color:vector RandomColor:vector Chip:vector



interval(100)
E = entity()
E:setMass(5)
E:setColor(255,255,255)
if(first()){
hint("Made by Tom",150)
hint("Do !(Name) to target people",150)
    E:removeTrails()
    findByClass("player")
    A=findToArray()
}

    Me=owner()
    runOnTick(1)
    runOnChat(1)
    holoCreate(1)
    holoMaterial( 1, "models/shiny")
    holoModel(1,"models/sprops/misc/alphanum/alphanum_R.mdl")
    holoScale(1,vec(1.5,1.5,1.5))
    holoColor(1,vec(255,0,0))
    holoPos(1,Me:pos()+vec(20,0,100))
    
    holoCreate(2)
    holoMaterial( 2, "models/shiny")
    holoModel(2,"models/sprops/misc/alphanum/alphanum_u.mdl")
    holoScale(2,vec(1.5,1.5,1.5))
    holoColor(2,vec(255,0,0))
    holoPos(2,Me:pos()+vec(5,0,100))
    
    holoCreate(3)
    holoMaterial( 3, "models/shiny")
    holoModel(3,"models/sprops/misc/alphanum/alphanum_n.mdl")
    holoScale(3,vec(1.5,1.5,1.5))
    holoColor(3,vec(255,0,0))
    holoPos(3,Me:pos()+vec(-10,0,100))
    
   
if( chatClk(owner()) )
{
    local Ls = owner():lastSaid()
   
    if( Ls[1] == "!" )
    {
        Target = findPlayerByName( Ls:sub(2,-1) )
       
        hint( "Target " + Target:name() + " has been found.", 2 )
       
        hideChat(1)
    }
}
 
if( Target )
{
    holoPos( 1, Target:pos() + vec(30,0,100) )
}

if( chatClk(owner()) )
{
    local Ls = owner():lastSaid()
   
    if( Ls[2] == "!" )
    {
        Target = findPlayerByName( Ls:sub(2,-1) )
       
        hint( "Target " + Target:name() + " has been found.", 2 )
       
        hideChat(1)
    }
}
 
if( Target )
{
    holoPos( 2, Target:pos() + vec(15,0,100) )
}

if( chatClk(owner()) )
{
    local Ls = owner():lastSaid()
   
    if( Ls[3] == "!" )
    {
        Target = findPlayerByName( Ls:sub(2,-1) )
       
        hint( "Target " + Target:name() + " has been found.", 2 )
       
        hideChat(1)
    }
}
 
if( Target )
{
    holoPos( 3, Target:pos() + vec(0,0,100) )
}

if( chatClk(owner()) )
{
    local Ls = owner():lastSaid()
   
    if( Ls[4] == "!" )
    {
        Target = findPlayerByName( Ls:sub(2,-1) )
       
        hint( "Target " + Target:name() + " has been found.", 2 )
       
        hideChat(1)
    }
}
 
if( Target )
{
    holoPos( 4, Target:pos() + vec(-15,0,100) )
}

if( chatClk(owner()) )
{
    local Ls = owner():lastSaid()
   
    if( Ls[5] == "!" )
    {
        Target = findPlayerByName( Ls:sub(2,-1) )
       
        hint( "Target " + Target:name() + " has been found.", 2 )
       
        hideChat(1)
    }
}
if( Target )
{
    holoPos( 5, Target:pos() + vec(-35,0,100) )
}

if( chatClk(owner()) )
{
    local Ls = owner():lastSaid()
   
    if( Ls[5] == "!" )
    {
        Target = findPlayerByName( Ls:sub(2,-1) )
       
        hint( "Target " + Target:name() + " has been found.", 2 )
       
        hideChat(1)
    }
}
