Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local radar = peripheral.wrap("top")
- local x,y = 1,1
- local monitor = peripheral.wrap("left")
- local timer = os.startTimer(1.5)
- local counter = 0
- print("Radarsystem online")
- while true do
- local event, param = os.pullEvent("key")
- if param == "timer" then
- monitor.clear()
- counter = table.getn(radar.getPlayerNames())
- if counter ~= 0 then
- for i=0,counter,i+1 do
- monitor.write(radar.getPlayerNames()[i]) --is doing nothing :/
- x,y = monitor.getCursorPos()
- y = y + 1
- monitor.setcursorPos(1,y)
- end
- end
- timer = os.startTimer(1.5)
- elseif param == 16 then
- print("closing program...")
- error("Radar System Closed")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement