Update tabletRadar.lua
This commit is contained in:
parent
9acdcf9d97
commit
7c54d6952f
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue