@name Croc0S
@inputs Memory CS:wirelink Power
@outputs 
@persist Char:string TT String:string
@trigger 
@model models/props_c17/consolebox01a.mdl

interval(1)
if(first()){
       CS:writeString("                                                                   " + "\n" ,2,3,999,200) 
 
TT = 0



}
if(Power == 0){
        CS:writeString("                         " + "\n" ,0,0,999,48)
         CS:writeString("                                                                  " + "\n" ,2,3,999,200)
    }
if(changed(Power)){
    CS:writeString("Croc0S is Booting..." + "\n" ,0,0,999,48)

timer("boot",5000)}


if(clk("boot")){CS:writeString("Croc0S is loaded." + "\n" ,0,0,999,48)
    timer("boot2",5000)

    }

if(clk("boot2")){    
    CS:writeString("                         " + "\n" ,0,0,999,48)
    CS:writeString("Croc0S V1" + "\n" ,0,0,999,48)}
Char = toChar(Memory)
if(changed(Char) & Char){
String = String + Char
}






if(String:find("cakestatus")){   
                                  
CS:writeString("Still a Lie" + "\n" ,2,5,999,200)
stoptimer("clear")}

if(String:find("players")){     
                               
CS:writeString(numPlayers() + " Out of " + maxPlayers() + "\n" ,2,5,999,200)
stoptimer("clear")}

if(String:find("gravity")){  
                                   
CS:writeString(gravity() + "\n" ,2,5,999,200)
stoptimer("clear")}






if(Memory ==13){   
CS:writeString(String + "\n" ,2,3,999,200)
    timer("clear",3000)
    String = ""
  TT = 1  
    
    
    
}




if(clk("clear")){TT=0
    CS:writeString("                                                                        " + "\n" ,2,3,999,200)}
