Mesut 28 Report post Posted June 10, 2023 i have a issue to start the server time i have found a script on functions this script but is it for server time, pls need some guide to start server time. Here is the script function CheckTime ( role ) local now_week= os.date("%w") -------------���ڼ���ʮ���ƣ� local now_hour= os.date("%H") -------------ʱ now_week= tonumber(now_week) now_hour= tonumber(now_hour)-- SystemNotice( role, "����".. now_week.." ʱ��".. now_hour) if now_week == 6 then if now_hour >= 6 and now_hour < 8 then return LUA_TRUE elseif now_hour >= 18 and now_hour < 20 then return LUA_TRUE end endend also is there anything else i have to do to start server time? Quote Share this post Link to post Share on other sites
Mesut 28 Report post Posted June 11, 2023 or if u can find in cpp server time on server file and hightlight it here pls cant find it. Quote Share this post Link to post Share on other sites
Mdrst 38 Report post Posted June 12, 2023 Server time is just the Operating System (OS) local time. You can get it in C++ using std::time/std::chrono libraries. Quote "Beware of bugs in the above code; I have only proved it correct, not tried it." - Donald E. Knuth Share this post Link to post Share on other sites
Mesut 28 Report post Posted February 29 U can find it on itemeffect .lua in script server side!! Quote Share this post Link to post Share on other sites
MrWick 0 Report post Posted March 1 20 hours ago, Mesut said: U can find it on itemeffect .lua in script server side!! Mesut, do you have discord? I have a question to ask you Quote Share this post Link to post Share on other sites
Mesut 28 Report post Posted March 1 yes mesut8979 1 Quote Share this post Link to post Share on other sites
MrWick 0 Report post Posted March 1 1 hour ago, Mesut said: yes mesut8979 i send u im mrwick Quote Share this post Link to post Share on other sites