Advertisement
Captain_Admiral

playerChecker

May 28th, 2013
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. local playerList = {"Captain_Admiral", "Stagfish", "Lionsaw22"}
  2. while true do
  3.  
  4. --Main
  5. event, clickingPlayer = os.pullEvent("player")
  6.  
  7. for i=1, #playerList do
  8. if playerList[i] == clickingPlayer then
  9. redstone.setOutput("left", true)
  10. os.sleep(3)
  11. redstone.setOutput("left", false)
  12. break
  13. end
  14. if i == #playerList then
  15. redstone.setOutput("front", true)
  16. os.sleep(1)
  17. redstone.setOutput("front", false)
  18. end
  19.  
  20. end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement