mathiasbarentsen

test

Nov 6th, 2013
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. local s = peripheral.wrap("right")
  2.  
  3. function test()
  4.   while true do
  5.  
  6.     event, playerName = os.pullEvent("player")
  7.     -- print(playerName)
  8.     if playerName == "victorbf01" or "berner5300" then
  9.       s.speak("Welcome!")
  10.       redstone.setOutput("bottom" , true)
  11.       sleep(0.5)
  12.       redstone.setOutput("bottom", false)
  13.       os.reboot()
  14.      else
  15.       s.speak("Go away")
  16.       os.reboot()
  17.     end
  18.   end
  19. end
  20.  
  21. test()
Advertisement
Add Comment
Please, Sign In to add comment