Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("ocs/apis/sensor")
- --LATO SENSORE
- se = sensor.wrap("back")
- cb = peripheral.wrap("right")
- --GIOCATORI PER CUI L'ALLARME NON SI ATTIVA
- giocatore1 = "lor54"
- giocatore2 = "Kiiw"
- giocatore3 = ""
- emailMandata = 0
- os.loadAPI("ocs/apis/sensor")
- while true do
- 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 then
- print("Rilevato giocatore non autorizzato: "..k)
- cb.setCommand("kill "..k)
- cb.runCommand()
- sleep(0.1)
- end
- end
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment