SHOW:
|
|
- or go back to the newest paste.
| 1 | - | local computer = require ("computer") |
| 1 | + | --Онлайн чейкер, ваниш не спасёт)) |
| 2 | - | local c = require('component') |
| 2 | + | local computer = require ("computer")
|
| 3 | - | local gpu = c.gpu |
| 3 | + | local c = require('component')
|
| 4 | - | |
| 4 | + | local gpu = c.gpu |
| 5 | - | color = { |
| 5 | + | local term = require('term')
|
| 6 | - | green = 0x00ff00, |
| 6 | + | |
| 7 | - | yellow = 0xffb600, |
| 7 | + | color = {
|
| 8 | - | red = 0xff0000 |
| 8 | + | green = 0x00ff00, |
| 9 | - | } |
| 9 | + | yellow = 0xffb600, |
| 10 | - | |
| 10 | + | red = 0xff0000 |
| 11 | - | names = {'Vanilla_', 'Dycedarg', 'Hugo14', 'SkyDrive_', 'Tequilla1337', 'Crazy_Doter'} |
| 11 | + | } |
| 12 | - | |
| 12 | + | |
| 13 | - | gpu.setResolution(30,7) |
| 13 | + | names = {'Vanilla_', 'Dycedarg', 'Hugo14', 'SkyDrive_', 'Tequilla1337', 'Crazy_Doter'}
|
| 14 | - | gpu.setForeground(color.yellow) |
| 14 | + | |
| 15 | - | gpu.set(2,1, 'В данный момент на сервере находятся:') |
| 15 | + | gpu.setResolution(30,7) |
| 16 | - | while true do |
| 16 | + | |
| 17 | - | for i, name in ipairs(names) do |
| 17 | + | while true do |
| 18 | - | c=computer.addUser(names[i]) |
| 18 | + | for i, name in ipairs(names) do |
| 19 | - | if (c) == true |
| 19 | + | c=computer.addUser(names[i]) |
| 20 | - | then computer.removeUser(names[i]) |
| 20 | + | if (c) == true |
| 21 | - | gpu.setForeground(color.green) |
| 21 | + | then computer.removeUser(names[i]) |
| 22 | - | print(" ",names[i]) |
| 22 | + | gpu.setForeground(color.green) |
| 23 | - | else |
| 23 | + | print(" ",names[i])
|
| 24 | - | gpu.setForeground(color.red) |
| 24 | + | else |
| 25 | - | print(" ",names[i]) |
| 25 | + | gpu.setForeground(color.red) |
| 26 | - | end |
| 26 | + | print(" ",names[i])
|
| 27 | - | end |
| 27 | + | end |
| 28 | - | --end |
| 28 | + | end |
| 29 | - | --end |
| 29 | + | os.sleep(10) |
| 30 | - | os.execute("cls") |
| 30 | + | os.execute("cls")
|
| 31 | end |