@name ISIS Sign up
@inputs EGP:wirelink Enter Button:entity Tracker:wirelink

#Clearing The Screen
if(first() | duped()){
    EGP:egpClear()
    }

#Creating Colors
if(first() | duped()){
    White = vec(255,255,255)
    Black = vec(0,0,0)
    Red = vec(255,0,0)
    Green = vec(0,255,0)
    Blue = vec(0,0,255)
    Yellow = vec(255,220,0)
    Orange = vec(255,90,0)
    Pink = vec(220,0,255)
    
    }


#Creating Static Objects
if(first() | duped()){
    Scale = 3
    #outline
    EGP:egpLine(1, vec2(0,0), vec2(510,0))
    EGP:egpLine(2, vec2(0,0), vec2(0,510))
    EGP:egpLine(3, vec2(510,0), vec2(510, 510))
    EGP:egpLine(4, vec2(0,510), vec2(510,510))
    #sizing the outline
    for(I=1, 4){EGP:egpSize(I, 10*Scale)}
    #coloring outline
    for(I=1, 4){EGP:egpColor(I, Blue)}
    #title
    EGP:egpText(5, "ISIS Application", vec2(150, 30))
    EGP:egpSize(5, 30)
    #title bar
    EGP:egpLine(6, vec2(15,70), vec2(495, 70))
    EGP:egpSize(6, 5)
    
    #info
    EGP:egpText(7, "By pressing the enter button you are signing your life away", vec2(30, 100))
    EGP:egpText(8, "to ISIS. The information you are giving is the following:  ", vec2(30, 120))
    EGP:egpText(9, "your name, your steamID, your job, and location. If you", vec2(30,140))
    EGP:egpText(10,"press the enter button and do not join ISIS we will find", vec2(30, 160))
    EGP:egpText(11,"you and kill you in the name of ALLAH.", vec2(30,180))
    
    
    }
    
    


interval(1000)
for(I = 0, findInSphere(entity():pos(), 50)){
    if(findResult(I):isPlayer() & findResult(I):isAlive() & findResult(I):aimEntity()==Button){
        TarPly = findResult(I)
        if(Enter & ~Enter){
            hint(TarPly:name()+" has signed up for ISIS", 4)
            hint(TarPly:name()+" is a " + TarPly:team():teamName(), 4)
            hint(TarPly:name()+" has been added to the tracker.", 4)
           }
        }
    }
    
if(first() | duped()){
    #Title
    Tracker:egpText(1, "ISIS Sign Up Tracker", vec2(150, 30))
    Tracker:egpSize(1, 30)
    
    Tracker:egpText(2, "Number of Members: ", vec2(30, 90))
    }
    
    

