LuaScripts/tabletRadar.lua

16 lines
476 B
Lua
Raw Normal View History

2021-01-08 17:13:28 +00:00
local component = require("component")
local radar = component.radar
2021-01-08 18:02:13 +00:00
local WHITELIST = {"erius", "DummyWalrus"}
2021-01-08 17:13:28 +00:00
2021-01-08 17:54:22 +00:00
print("радар запущен")
2021-01-08 17:13:28 +00:00
while true do
local players = radar.getPlayers()
2021-01-08 17:54:59 +00:00
for i = 1, #players do
2021-01-08 18:05:29 +00:00
if players[i].name not in WHITELIST then
2021-01-08 18:02:13 +00:00
print(players[i].name.." ; Расстояние: "..players[i].distance.." ; Координаты: x = "..players[i].x.." y = "..players[i].y.." z = "..players[i].z)
print("")
end
2021-01-08 17:13:28 +00:00
end
end