From aa43904e504d967282ef1af111a7f3bda809ed8d Mon Sep 17 00:00:00 2001 From: kosmik641 Date: Wed, 8 Oct 2025 03:21:11 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20CV=5FPass=20ConVar=20"password"=20=D0=BD=D0=B5=D0=B4?= =?UTF-8?q?=D0=BE=D1=81=D1=82=D1=83=D0=BF=D0=B5=D0=BD=20=D0=B8=D0=B7=20Lua?= =?UTF-8?q?,=20=D1=83=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD=D0=BE=20=D0=B8=D1=81?= =?UTF-8?q?=D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D1=8D=D1=82=D0=BE=D0=B9=20=D0=BF=D0=B5=D1=80=D0=B5?= =?UTF-8?q?=D0=BC=D0=B5=D0=BD=D0=BD=D0=BE=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/autorun/metrostroi.lua | 30 +----------------------------- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/lua/autorun/metrostroi.lua b/lua/autorun/metrostroi.lua index a0e8ddf..e364ec7 100644 --- a/lua/autorun/metrostroi.lua +++ b/lua/autorun/metrostroi.lua @@ -729,7 +729,6 @@ if SERVER then --Cvars local CV_Enabled = CreateConVar("metrostroi_monitoring_allow",1, FCVAR_ARCHIVE,"Enables metrostroi servers monitoring for this server. Send only basic info(map,ip,port,hostname) for metrostroi servers list") local CV_Key = CreateConVar("metrostroi_monitoring_key","", FCVAR_ARCHIVE,"Unique key for metrostroi servers monitoring. Used for server identification for servers with dynamic IP") - local CV_Pass = GetConVar("sv_password") local State,LastSend,LastRec,LastSucc = 0 local LastErr @@ -752,7 +751,6 @@ if SERVER then State = 0 end - local oldPass = CV_Pass:GetString() local function init() if monitoringStarted() then destroy() end if not CV_Enabled:GetBool() then return end @@ -878,33 +876,7 @@ if SERVER then local ip,port = string.match(game.GetIPAddress(),"([%d.]+):([%d]+)") local key = CV_Key:GetString("metrostroi_monitoring_key") if #key ~= 128 then key = "" end - if CV_Pass:GetString("sv_password") ~= "" then - --if key ~= "" then - post{ - --[[ ip = ip, - port = port, - hostname = "", - map = "", - maxplayers = "0", - players = "0", - version = "0",--]] - - status = "1", - uid = key, - } - --end - destroy() - --Detect sv_password changes for monitoring status change - timer.Create("MetrostroiMonitoringPass",1,0,function() - local value = CV_Pass:GetString() - if oldPass ~= value and value == "" then - init() - timer.Remove("MetrostroiMonitoringPass") - end - oldPass = value - end) - State = -1 - elseif typ==2 then + if typ==2 then post{ uid = key, owner = ply,