From 7c54d6952f9c12f76180128c1a1c5b1e41213e8d Mon Sep 17 00:00:00 2001 From: erius0 <63460770+erius0@users.noreply.github.com> Date: Fri, 8 Jan 2021 21:02:13 +0300 Subject: [PATCH] Update tabletRadar.lua --- tabletRadar.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tabletRadar.lua b/tabletRadar.lua index 315b640..29b5173 100644 --- a/tabletRadar.lua +++ b/tabletRadar.lua @@ -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