|
|
@ -4413,12 +4413,12 @@ script_update = { |
|
|
|
if text ~= "" and not string.find(text, thisScript().version) then |
|
|
|
if text ~= "" and not string.find(text, thisScript().version) then |
|
|
|
addChatMessage( string.format("Âûøëà íîâàÿ âåðñèÿ '%s'. Òåêóùàÿ: '%s'", text, thisScript().version) ) |
|
|
|
addChatMessage( string.format("Âûøëà íîâàÿ âåðñèÿ '%s'. Òåêóùàÿ: '%s'", text, thisScript().version) ) |
|
|
|
if ini[name].auto_update then |
|
|
|
if ini[name].auto_update then |
|
|
|
addChatMessage( string.format("Авто-Обновление скрипта включено. Процесс запущен!") ) |
|
|
|
addChatMessage( string.format("Àâòîîáíîâëåíèå ñêðèïòà âêëþ÷åíî. Ïðîöåññ çàïóùåí!") ) |
|
|
|
script_update.command() |
|
|
|
script_update.command() |
|
|
|
else |
|
|
|
else |
|
|
|
local command = (thisScript().name:gsub(" ", "").."-update"):lower() |
|
|
|
local command = (thisScript().name:gsub(" ", "").."-update"):lower() |
|
|
|
sampRegisterChatCommand(command, script_update.command) |
|
|
|
sampRegisterChatCommand(command, script_update.command) |
|
|
|
addChatMessage( string.format("Авто-Обновление скрипта выключено. Обновить самому: /%s", command) ) |
|
|
|
addChatMessage( string.format("Àâòîîáíîâëåíèå ñêðèïòà âûêëþ÷åíî. Îáíîâèòü ñàìîìó: /%s", command) ) |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|