Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Made by FoxWorn3365
- os.loadAPI("ocs/apis/sensor")
- --LATO SENSORE
- se = sensor.wrap("top")
- --LATO ATTIVAZIONE REDSTONE QUANDO SQUILLA L'ALLARME
- lato = "back"
- ritardo = 0
- --GIOCATORI PER CUI L'ALLARME NON SI ATTIVA
- giocatore1 = "djcrash01"
- giocatore2 = "LORDMALARIA1"
- giocatore3 = ""
- giocatore4 = ""
- giocatore5 = ""
- rs.setOutput(lato, true)
- os.loadAPI("ocs/apis/sensor")
- while true do
- local rsout = rs.getInput("front")
- ta = se.getTargets()
- for k,v in pairs(ta) do
- if v["Name"] == "Player" and k ~= "lego11" and k ~= giocatore1 and k ~= giocatore2 and k ~= giocatore3 and k ~= giocatore4 and k ~= giocatore5 then
- print("Rilevato giocatore non autorizzato: "..k)
- rs.setOutput(lato, false)
- sleep(1)
- else
- rs.setOutput(lato, true)
- sleep(1)
- end
- end
- end
Add Comment
Please, Sign In to add comment