Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local NP = 5 -- 0 под блоком 1 над блоком 2 слева 3 справа 4 сзади 5 впереди
- local component = require("component")
- local computer = require("computer")
- local term = require("term")
- local rs=component.redstone
- local debug = computer.addUser
- local gpu = component.gpu
- term.clear()
- xresolution = 60
- gpu.setResolution(xresolution,15)
- gpu.setForeground(0x0000FF)
- gpu.set((xresolution/2-(string.len("Anchor Management"))/2),3,"Anchor Management")
- status1=" [Online - Якорь Отключен] "
- status2=" [Offline - Якорь Включен] "
- admin={'Invo_Ker'}
- while true do
- d=5
- d=d+1
- gpu.setForeground(0xFFDD00)
- gpu.set((xresolution/2-(string.len("[Admin]"))/2),d,"[Admin]")
- d=d+0
- for j = 1, #admin do
- d=d+2
- name=admin[j]
- prov=debug(name)
- if prov ~= nil then gpu.setForeground(0x00FF00)
- gpu.set(((xresolution/2)-11-(string.len(name))/2),d,name..status1)
- rs.setOutput(NP,15)
- else
- gpu.setForeground(0xFF0000)
- gpu.set(((xresolution/2)-11-(string.len(name))/2),d,name..status2)
- rs.setOutput(NP, 0)
- end
- computer.removeUser(name)
- end
- os.sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement