Guest User

loginserver

a guest
Sep 14th, 2013
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. rednet.open("front")
  2. function checkpass()
  3.  
  4. if msg == "lucozade" then
  5.   rednet.send(id, "yes")
  6.  
  7. elseif msg == "su25tmflanker" then
  8.   rednet.send(id, "yes")
  9. elseif msg == "DGM01" then
  10.   rednet.send(id, "yes")
  11.  
  12. else
  13.   print ("wrong")
  14. end
  15. end
  16.  
  17.  
  18. --PROGRAM START
  19. while true do
  20. id,msg=rednet.receive()
  21. checkpass()
  22. end
Advertisement
Add Comment
Please, Sign In to add comment