ErolDude

New chatbox lock program

Nov 25th, 2015
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. --place chatbox beneath computer, output should be on LEFT side
  2. chat = peripheral.wrap("bottom")
  3. --settings
  4. u1 = "ErolDude"
  5. u2 = "0"
  6. pass = "lel"
  7. while true do
  8. event, guy, msg = os.pullEvent("chat")
  9. if guy == u1 or guy == u2 and msg == pass then
  10. rs.setOutput("left", true)
  11. os.sleep(3)
  12. rs.setOutput("left", false)
  13. end
  14. end
Advertisement
Add Comment
Please, Sign In to add comment