SHOW:
|
|
- or go back to the newest paste.
1 | --https://i.imgur.com/wIVT0wn.png | |
2 | --https://pastebin.com/LaJHZAns | |
3 | - | --update 01.10.21 |
3 | + | --update 22.06.21 |
4 | ||
5 | local admins = { | |
6 | - | {"Rainbowtaves","Admin"}, |
6 | + | {"Alex25764","owner"}, |
7 | - | {"Noire","Admin"}, |
7 | + | {"Aboba1337","Member"}, |
8 | - | {"Farianit","Admin"}, |
8 | + | {"sad_volodia","Member"}, |
9 | - | {"Dancho","Moder"}, |
9 | + | {"jesia_","Member"}, |
10 | - | {"Herobrine1_YT","Moder"}, |
10 | + | {"Painfulspirit","Member"}, |
11 | - | {"Doctor_Strange","Moder"}, |
11 | + | |
12 | - | {"Almazic","Moder"}, |
12 | + | |
13 | - | {"Masslime","Moder"}, |
13 | + | |
14 | - | {"Wistaf","Moder"}, |
14 | + | |
15 | - | {"Makfaer","Moder"}, |
15 | + | |
16 | - | {"D_Lorian","Moder"}, |
16 | + | |
17 | - | {"LuGaNeKiT","Moder"}, |
17 | + | |
18 | - | {"LiskaHilgastin","Helper"}, |
18 | + | |
19 | - | {"cleveron24","Helper"}, |
19 | + | |
20 | - | {"Ananasko","Helper"}, |
20 | + | |
21 | - | {"Jotun","Helper"} |
21 | + | |
22 | local function check() | |
23 | gpu.fill(1,1,x_resol,y_resol," ") | |
24 | local line = 1 | |
25 | for ind = 1,#admins do | |
26 | local name = admins[ind][1] | |
27 | local rank = admins[ind][2] | |
28 | gpu.setForeground(0xFFFFFF) | |
29 | - | local unicode = require("unicode") |
29 | + | |
30 | gpu.set(string.len(rank)+2,line,"] - "..name) | |
31 | if rank == "owner" then | |
32 | gpu.setForeground(0xFF0000) | |
33 | elseif rank == "Member" then | |
34 | gpu.setForeground(0x0000FF) | |
35 | elseif rank == "Owner" then | |
36 | gpu.setForeground(0xFFFF00) | |
37 | end | |
38 | gpu.set(2,line,rank) | |
39 | if computer.addUser(name) then | |
40 | computer.removeUser(name) | |
41 | gpu.setForeground(0x00FF00) | |
42 | - | gpu.set(unicode.len(rank)+2,line,"] - "..name) |
42 | + | gpu.set(x_resol-7,line,"online") |
43 | - | if rank == "Admin" then |
43 | + | else |
44 | gpu.setForeground(0x999999) | |
45 | - | elseif rank == "Moder" then |
45 | + | gpu.set(x_resol-7,line,"offline") |
46 | end | |
47 | - | elseif rank == "Helper" then |
47 | + | |
48 | end | |
49 | end | |
50 | ||
51 | - | if computer.addUser(name) then |
51 | + | |
52 | - | computer.removeUser(name) |
52 | + | |
53 | - | gpu.setForeground(0x00FF00) |
53 | + | |
54 | - | gpu.set(x_resol-7,line,"online") |
54 | + | |
55 | - | else |
55 | + | |
56 | - | gpu.setForeground(0x999999) |
56 | + | |
57 | - | gpu.set(x_resol-7,line,"offline") |
57 | + | |
58 | local e = ({event.pull(5,"key_down")})[4] | |
59 | if e == 29 or e == 157 then -- Ctrl Выход | |
60 | gpu.setResolution(w,h) | |
61 | gpu.setBackground(0x000000) | |
62 | gpu.setForeground(0xFFFFFF) | |
63 | os.execute("cls") | |
64 | os.exit() | |
65 | end | |
66 | end |