Advertisement
Guest User

JoanDu98 : launch

a guest
Sep 28th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos()
  3.  
  4. --valeur par defaut
  5. serveur = 5835
  6.  
  7. --connexion rednet
  8. rednet.open("back")
  9.  
  10. --authentification
  11. rednet.send(serveur, "command.auth", id)
  12.  
  13. print("En attente d'authentification ...")
  14.  
  15. while true do
  16.     local local_id, command, send_id = rednet.receive()
  17.     if command == "command.validauth" then
  18.         print("Authentification validée")
  19.     end
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement