@name FailCake Server
@inputs Power EGP:wirelink
@outputs O
@persist I IP:array
@trigger all
@model models/props_lab/reciever01b.mdl

E = entity()

if(Power){    
    
dsJoinGroup("Server")
dsSetScope(2)

if(dsClk("Connect")){
O++
dsSend("Connect","Client",IP[O,number]) 
   
if(dsGetString() == "C"){

for(I = 0,IP:count()){
EGP:egpText(I,"[192.168.1."+IP[I,number]+"] Connected",vec2(50,I*20))
} 

}

}

}else{
EGP:egpClear()
}
