new thread for testers upd

update
rubin 2 years ago
parent fd5426844d
commit c3fa930814
  1. 2
      mafia-tools.lua

@ -556,6 +556,7 @@ upd_testers.init = function()
local command = (thisScript().name:gsub(" ", "").."-test"):lower()
addChatMessage("Активна команда обновления скрипта: "..command)
sampRegisterChatCommand(command, function()
lua_thread.create(function()
local fpath = os.tmpname()
local result, text = pcall(openURL, upd_testers.url, fpath)
if result and text ~= "" and text:find(thisScript().name:gsub("%-", "%%-")) then
@ -570,4 +571,5 @@ upd_testers.init = function()
end
end
end)
end)
end
Loading…
Cancel
Save