Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --##Dark by patrick115
- --##MainPC
- while true do
- rednet.open("back")
- print("By patrick115")
- print("Napis: spawn pro spawn withera, restart pro restart druheho pc")
- local basic = read(l)
- if l == spawn then
- write("Pocet cyklu: ")
- local cykly = read(i)
- for cyk=1, cykly do
- rednet.broadcast("spawn")
- sleep(60)
- if cyk == cykly then
- shell.run("reboot")
- end
- end
- elseif l == restart then
- rednet.broadcast("restart")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement