Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name MP-Tracker
- @inputs Ranger:entity
- @outputs Total Count
- @persist Printers:array TotalM
- @trigger all
- 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()
Add Comment
Please, Sign In to add comment