flamyman1412 4 Report post Posted July 8, 2019 I used this function but Portal is still open. I chose the time 8,10,12,16,18 but 14 still open the Portal Stay the same How do I fix it? ======================================= function can_open_entry_garner2( map ) local Now_Time = GetNowTime() if Now_Time == 8 or Now_Time == 10 or Now_Time == 12 or Now_Time == 16 or Now_Time == 18 then return 1 else return 0 end end Quote Share this post Link to post Share on other sites
mkhzaleh 131 Report post Posted July 8, 2019 function can_open_entry_garner2( map ) local now_hour= os.date("%H") --- hour--- -- now_week= tonumber(now_week) now_hour= tonumber(now_hour) if now_hour == 18 then return 1 else return 0 end end Quote Share this post Link to post Share on other sites
flamyman1412 4 Report post Posted July 9, 2019 5 hours ago, mkhzaleh said: function can_open_entry_garner2( map ) local now_hour= os.date("%H") --- hour--- -- now_week= tonumber(now_week) now_hour= tonumber(now_hour) if now_hour == 18 then return 1 else return 0 end end Still the same Quote Share this post Link to post Share on other sites
flamyman1412 4 Report post Posted July 9, 2019 Help Me Quote Share this post Link to post Share on other sites