Загрузил SHANNE _

Lua-Варп

реклама
local white = {
_bongo_ = true,
HyperGelax = true,
Kamish32 = true,
murphyy = true,
pumpkin_sl = true,
serafim = true
}
local com = require('component')
local event = require("event")
local term = require('term')
local radar = com.isAvailable("radar") and com.radar or error("нет радара")
local gpu = com.gpu
local w,h = gpu.getViewport()
local maxik = 1
local play = {'', '', '', '', '', '', '', '', ''}
while true do
local pl = radar.getPlayers()
gpu.setForeground(0xffb600)
gpu.set(2,1, 'в зоне обнаружения радара '..#pl..' ч.')
for i = 1, #pl do
local gg = false
for j = 1, #play do
if play[j] ~= pl[i].name then
gg = true
else
gg = false
break
end
end
if gg == true then
play[maxik] = pl[i].name
end
maxik = maxik + 1
end
for i = 1, #play do
gpu.set(2, i + 1, i..'. '..play[i])
end
local e = ({event.pull(5,"key_down")})[4]
if e == 29 or e == 157 then -- Ctrl Выход
gpu.setResolution(w,h)
gpu.setBackground(0x000000)
gpu.setForeground(0xFFFFFF)
os.execute("cls")
os.exit()
end
end 
Скачать