SHOW:
|
|
- or go back to the newest paste.
| 1 | local pd = peripheral.find("playerDetector")
| |
| 2 | list = | |
| 3 | {
| |
| 4 | "ZathegamE", | |
| 5 | "Hexell1", | |
| 6 | "_Ohm133_" | |
| 7 | } | |
| 8 | open = false | |
| 9 | while true do | |
| 10 | --open = false | |
| 11 | for i, authorized in pairs(list) do | |
| 12 | boole = pd.isPlayerInRange(2,authorized) | |
| 13 | if boole == true then | |
| 14 | term.clear() | |
| 15 | term.setCursorPos(1,1) | |
| 16 | print(boole,authorized) | |
| 17 | open = true | |
| 18 | rs.setOutput("bottom",true)
| |
| 19 | sleep(1) | |
| 20 | else | |
| 21 | term.clear() | |
| 22 | term.setCursorPos(1,1) | |
| 23 | rs.setOutput("bottom",false)
| |
| 24 | end | |
| 25 | --rs.setOutput("bottom",open)
| |
| 26 | end | |
| 27 | sleep() | |
| 28 | end |