@name MP-Tracker
@inputs Ranger:entity
@outputs Total Count
@persist Printers:array TotalM
@trigger all
#Made By Spoofzor
interval(1000)

if(first()){
    PrintedAmount = 0
}
if(Ranger:printerType()!=""){
    NO = 0
    A = Ranger:id()
    for(I =1, Printers:count()){
        if(A==Printers[I,entity]:id()){
            NO = 1
        }
    }
    if(NO == 0){
        Printers:pushEntity(Ranger)
    }
}



    for(B=1,Printers:count()) {
        PrintedAmount += Printers[B,entity]:printedMoney()
    }

    for(C=1,Printers:count()){
        if(!Printers[C,entity]:isPrinter()){
                Printers:remove(C)
            }
    }
Total = PrintedAmount
Count = Printers:count()
