Advertisement
Guest User

kach

a guest
Apr 22nd, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.52 KB | None | 0 0
  1. local com = require('component')
  2. local cb=com.chat_box
  3. local red = com.redstone
  4. local event=require("event")
  5. local str=require("string")
  6.  
  7. while true do
  8.  evt,_,plr,msg=event.pull("chat_message")
  9.     if msg=="вход" or msg=="Вход" or msg=="ВХОД" then
  10.     if plr~="Horonos" and plr~="Redriner" then
  11. red.setOutput(4,1)
  12. red.setOutput(4,1)
  13. red.setOutput(4,1)
  14. red.setOutput(4,1)
  15. red.setOutput(4,1)
  16. os.sleep(1)
  17. red.setOutput(5,0)
  18. red.setOutput(4,0)
  19. red.setOutput(3,0)
  20. red.setOutput(2,0)
  21. red.setOutput(1,0)
  22. print(plr)
  23.     end
  24. end
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement