@name SteamIDChecker
@outputs Colide
@persist ID:array Ply:entity E:entity
@trigger all

if(first() | duped()){
runOnTick(1)
    
## ADD / REMOVE STEAM IDS HERE :D

ID[1,string] = "STEAM_0:1:20785590" # Example ID
#ID[2,string] = "STEAM_0:1:23434354" 
#ID[3,string] = "STEAM_0:1:34534534" 
#etc


## SETTINGS ##
MaxRange = 200 # The Max Detecting Range
## SETTINGS ##


E = entity()
Colide = 1   
}

findByClass("player")
findInSphere(E:pos(),MaxRange) # Find in the range.
Ply = findClosest(E:pos()) # Find the Closest Player to the E2

for(I=1,ID:count()){
    
if(Ply:steamID() == ID[I,string]){ ## If he has the same Id let him in,else not
Colide = 0 
E:setColor(0,255,0) 
setName("SteamIDChecker [Detected!]")  
}else{
Colide = 1
E:setColor(255,0,0) 
setName("SteamIDChecker [Not Detected!]")    
}

}
