Update tabletRadar.lua

This commit is contained in:
erius0 2021-01-08 21:02:13 +03:00 committed by GitHub
parent 9acdcf9d97
commit 7c54d6952f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,12 +1,15 @@
local component = require("component")
local radar = component.radar
local WHITELIST = {"erius", "DummyWalrus"}
print("радар запущен")
while true do
local players = radar.getPlayers()
for i = 1, #players do
print(players[i].name.." ; Расстояние: "..players[i].distance.." ; Координаты: x = "..players[i].x.." y = "..players[i].y.." z = "..players[i].z)
print("")
if (players[i].name not in WHITELIST) then
print(players[i].name.." ; Расстояние: "..players[i].distance.." ; Координаты: x = "..players[i].x.." y = "..players[i].y.." z = "..players[i].z)
print("")
end
end
end