LokeYourLord

Test

Feb 23rd, 2015
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. sensor = peripheral.wrap("top")
  2. while true do
  3. local users = {["LokeYourLord"] = true,
  4. ["Bassern"] = true}
  5. for _, name in pairs(sensor.getPlayerByName()) do
  6. if users[name] then
  7. door = true
  8. end
  9. end
  10. if door then
  11. rs.setOutput("left",true)
  12. else
  13. rs.setOuzput("left",false)
  14. end
  15. sleep(1)
  16. end
Advertisement
Add Comment
Please, Sign In to add comment