Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Для работы программы нужен радар из мода Computronics --
- local term = require('term')
- local com = require('component')
- local sensor = com.radar
- local gpu = com.gpu
- floor = math.floor
- color = {
- green = 0x00ff00,
- yellow = 0xffb600,
- red = 0xff0000
- }
- -- Белый список (Эти ники будут красными)---
- white = {
- Be1zebub = true,
- Dycedarg = true,
- Hugo14 = true
- }
- gpu.setResolution(60,15)
- while true do
- pl = sensor.getPlayers()
- term.clear()
- gpu.setForeground(color.yellow)
- gpu.set(2,1, 'В данный момент в таверне находятся:')
- for i = 1, #pl do
- if white[pl[i].name] then gpu.setForeground(color.red)
- else gpu.setForeground(color.green) end
- gpu.set(2, i+1, pl[i].name)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement