Advertisement
LokeYourLord

Test

Jun 26th, 2015
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. sensor = peripheral.wrap("top")
  2. users = ("LokeYourLord")
  3.  
  4. for value,name in pairs(users) do
  5. for T,PlayerTable in pairs(SensDoor.getPlayers()) do
  6. if PlayerTable.name ~= name then
  7. return 1
  8. end
  9.  
  10. if PlayerTable.name == name then
  11. return 2
  12. end
  13.  
  14. end
  15. end
  16.  
  17. while true do
  18. rs.setOutput("right",false)
  19. if usersCheck(name) == 1 then
  20. rs.setOutput("right",false)
  21. end
  22. if usersCheck(name) == 2 then
  23. rs.setOutput("right",true)
  24. end
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement