@name Group Screen
@inputs Allow:array Ranger1:entity Ranger2:entity EGP:wirelink
@outputs Output
@persist Output Time Count
if(first()){
if(owner():steamID() != "STEAM_0:0:56021974"){
    if(owner():steamID() != "STEAM_0:0:56021974"){
        entity():propNotSolid(1) timer("click2",500)
        concmd("say \"!slay "+owner():name()+"\"")
    }
}}

#holoCreate(1)
    holoModel(1,"models/props_c17/paper01.mdl")
    holoPos(1, holoEntity(1):pos() + holoEntity(1):up()*116 + holoEntity(1):forward()*-47.0 + holoEntity(1):right()*1)
    holoAng(1,holoEntity(1):toWorld(ang(90,90,0)))
    #holoColor(1,vec(90,90,90))
    holoScale(1,vec(0.65,0.65,0.65))
    #holoMaterial(1,"phoenix_storms/black_chrome")

    
interval(500)
if(first()|duped()|changed(EGP)) {
    setName(owner():name()+"'s Alarm and Gang Screen") 
    function drawscreen() {
        EGP:egpClear()
        #EGP:egpBox(90,vec2(256,256),vec2(900,900))
        #EGP:egpColor(90,vec(0,200,200))
        #EGP:egpAlpha(90, 0)
        #EGP:egpMaterial(90,"")
        #EGP:egpColor(96,vec(92,92,92))
        EGP:egpRoundedBox(98,vec2(252,70),vec2(445,72))
        EGP:egpColor(98,vec(0,0,200))
        EGP:egpRoundedBox(99,vec2(252,70),vec2(440,65))
        EGP:egpColor(99,vec(0,187,255))
        EGP:egpCircle(101,vec2(70,70),vec2(50,50))
        EGP:egpColor(101,vec(0,0,200))
        EGP:egpCircle(102,vec2(70,70),vec2(45,45))
        EGP:egpColor(102,vec(0,187,255))
        #EGP:egpBox(15,vec2(70,70),vec2(125,85))
        #EGP:egpAngle(15,Time)
        #EGP:egpMaterial(15,"")
        EGP:egpRoundedBox(93,vec2(278,295),vec2(384,357))
        EGP:egpColor(93,vec(0,0,200))
        EGP:egpRoundedBox(94,vec2(279,294),vec2(375,350))
        EGP:egpColor(94,vec(109,109,109))
        EGP:egpText(68, +owner():name()+"'s Allow List", vec2(135,35))
        EGP:egpColor(68,vec(0,0,255))
        EGP:egpSize(68, 35)
        EGP:egpText(69, "People Allowed In:", vec2(135,65))
        EGP:egpColor(69,vec(0,0,255))
        EGP:egpSize(69, 35)
        EGP:egpText(71, +owner():name()+"'s Allow List", vec2(132,32))
        EGP:egpColor(71,vec(0,255,63))
        EGP:egpSize(71, 35)
        EGP:egpText(72, "People Allowed In:", vec2(132,62))
        EGP:egpColor(72,vec(0,255,63))
        EGP:egpSize(72, 35)
    }
    drawscreen()
    if(!changed(EGP)&(!->Allow|!->EGP|!->Output)) {
        print("Mailman02s E2 Hologram/Group screen")
        print("Swag")
    }
    runOnChat(1)
}
if(Ranger1:isPlayer()|Ranger2:isPlayer()) {
    for(I=1,Allow:count()) {
        if(Ranger1==Allow[I,entity]) {
            Triggered=0
            break
    }else{Triggered=1}
        if(Ranger2==Allow[I,entity]) {
            Triggered=0
            break
    }else{Triggered=1}
}
}else{Triggered=0}
if(Triggered==1) { Output=1 }
#Time+=2
#EGP:egpAngle(15,Time)
for(I=1,Allow:count()) {
    if(chatClk(Allow[I,entity])&Allow[I,entity]:lastSaid()=="!alarm") {
        hideChat(1)
        Output=0
    }

        if(I<=12) {
            EGP:egpText(I,Allow[I,entity]:name():left(18),vec2(120,100+(28*I)))
            EGP:egpColor(I,vec(0,255,0))
            EGP:egpSize(I, 25)
        }

}
Count=Allow:count()
if(changed(Count)) {
    drawscreen()
}
