LuaScripts/tabletRadar.lua
2021-01-08 21:05:29 +03:00

15 lines
476 B
Lua

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
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