Advertisement
patrick11514

DarkMainPCv4

Apr 6th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | None | 0 0
  1. --##Dark by patrick115
  2. --##MainPC
  3. while true do
  4.     rednet.open("back")
  5.     print("By patrick115")
  6.     print("Napis: spawn pro spawn withera, restart pro restart druheho pc")
  7.     local basic = read(l)
  8.     if l == spawn then
  9.         write("Pocet cyklu: ")
  10.         local cykly = read(i)
  11.         for cyk=1, cykly do
  12.             rednet.broadcast("spawn")
  13.             sleep(60)
  14.             if cyk == cykly then
  15.                 shell.run("reboot")
  16.             end
  17.         end
  18.     elseif l == restart then
  19.         rednet.broadcast("restart")
  20.     end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement