Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require("component")
- local computer = require("computer")
- -----Ники в вайте не пишет в чат-----
- local whitelist = {['Exozze'] = true}
- local term = require("term")
- local t = require("table")
- local event = require("event")
- local gpu = component.gpu
- local r = component.radar
- local chat = component.chat_box
- local players = {}
- chat.setName("§2ВНИМАНИЕ'§7")
- print("Вывод ников в чат игры(Y/N):")
- conf = io.read()
- function palevo()
- local scan = r.getPlayers()
- for i = 1, #scan do
- if not whitelist[scan[i].name] then
- t.insert(players, scan[i].name)
- end
- end
- local info = t.concat(players,",")
- if conf == "Y" or conf == "y" then
- chat.say("§9На территории замечен: §4" ..info)
- end
- print("Замечен:")
- print(info)
- players = {}
- os.sleep(30)
- end
- while true do
- local scan_a = r.getPlayers()
- if r.getPlayers() then
- for j = 1, #scan_a do
- if not whitelist[scan_a[j].name] then
- palevo()
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement