@name Info_Screen_V1 
@inputs List:wirelink Info:wirelink Up Down 
@outputs 
@persist Index
@trigger 
interval(600)

CMD = owner():lastSaid():explode(" ")

Players = players()
List:egpClear()
Info:egpClear()
for(I=1, Players:count()){
        Ply = Players[I, entity]:name()
        List:egpText(I,Ply,vec2(50,20*I))
    }

if(Up){Index--}
if(Down){Index++}
if(Index<1){Index=Players:count()}
if(Index>Players:count()){Index = 1}

Play = Players[Index, entity]
if(CMD:string(1)=="!f"){
    Play = findPlayerByName(owner():lastSaid():sub(4))
    }
Dist= round(entity():pos():distance(Play:pos()))




Info:egpText(9,"Name: " + Play:name(),vec2(10,10))
Info:egpText(1,"Steam ID: " + Play:steamID(),vec2(10,30))
Info:egpText(2,"Kills: "+ Play:frags(),vec2(10,50))
Info:egpText(3,"Deaths: "+ Play:deaths(),vec2(10,70))
Info:egpText(4,"Distance: "+Dist,vec2(10,90))
Info:egpText(5,"Last Said: " + Play:lastSaid(),vec2(10,110))
Info:egpText(6,"Job: " + Play:team():teamName(),vec2(10,130))
Info:egpText(7,"Health: " + Play:health(),vec2(10,150))
Info:egpText(8,"Armor: " + Play:armor(),vec2(10,180))


