Graf 209 Report post Posted February 14, 2018 (edited) Время сервера Чтобы вывести в игру время сервера, можно добавить эти строчки в cha_timer(scripts/calculate/function.lua): if math.mod(now_tick, 360) == 0 and now_tick > 0 then -- Every 5 minutes, will give notice for Server Time. local now_hour= os.date("%H") -- Hour Scripts local now_miniute= os.date("%M") -- Minute Scripts local now_scend= os.date("%S") -- Secs Scripts now_hour= tonumber(now_hour) -- Applying Hour now_miniute= tonumber(now_miniute) -- Applying Minute now_scend= tonumber(now_scend) -- Applying Secs BickerNotice ( role, "Current Server Time: "..now_hour..":"..now_miniute..":"..now_scend.."") end Но вывод будет такой: Чтобы вывести в нашем формате, нужно написать так: if math.mod(now_tick, 360) == 0 and now_tick > 0 then -- Выводит время каждые пять минут. local now_hour= os.date("%X") BickerNotice ( role, "Время сервера: "..now_hour.."") end И выглядеть это будет так: P.S. информация взята с архива mega. Написано, что pkodev.com(закрыт). Edited February 14, 2018 by Graf 1 Quote Share this post Link to post Share on other sites