Advertisement
Plazter

Latch

Sep 11th, 2013
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1.  
  2. local whitelist = {
  3. ['plazter'] = true,
  4. ['nick4559'] = true
  5. }
  6.  
  7.  
  8. local test = true
  9. while true do
  10.  
  11. event, p1 = os.pullEvent("player")
  12.  
  13. if whitelist[ p1:lower() ] then
  14. if test == true then
  15. test = false
  16. rs.setOutput("bottom", true)
  17. print("I am on!")
  18. elseif test == false then
  19. test = true
  20. print("I Am off!")
  21. rs.setOutput("bottom", false)
  22. end
  23. else
  24. print("U aint plazter or Pizzamanden!")
  25. end
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement