Shako 97 Report post Posted November 7, 2016 Hello! Is there a function that checks if a map entry (portal) is open? If there is, I would like to know! Thank you! ShaKo Quote Sunny Go! Online pko.host Share this post Link to post Share on other sites
V3ct0r 2,117 Report post Posted November 7, 2016 Hello @Shako! You can write a small function and use it if map opening condition depends on time: function CheckPortal() local hour = GetNowTime() if (hour == 14 or hour == 20) then return 1 -- Portal is open in 2:00 p.m and 8:00 p.m. end return 0 end Quote Some useful links / Полезные ссылки Tips for making a topic in 'Questions & Help' / Рекомендации по созданию тем в разделе "Помощь" Server Advertising Section Rules / Правила раздела "Реклама серверов" Available e-mail domains for registration / Допустимые e-mail домены для регистрации User groups / Группы пользователей User ranks / Звания пользователей "Broken" pictures on the forum / "Битые" изображения на форуме Beware of scammers! / Осторожно, мошенники! My developments / Мои разработки Mods for client and server / Моды для клиента и сервера PKOdev.NET website for Tales of Pirates Server / PKOdev.NET веб-обвязка для сервера Пиратии I do not provide any help in private messages and outside the forum. Use 'Questions & Help' section please. Thank you for understanding! Я не оказываю какую-либо помощь в личных сообщениях и вне форума. Пожалуйста, используйте раздел "Пиратия: Помощь". Благодарю за понимание! Share this post Link to post Share on other sites
Billy 164 Report post Posted November 7, 2016 This seems to work: http://pastebin.com/CLAcFX7c (Not 100% sure if it will always work, so obviously test it before using) Quote Share this post Link to post Share on other sites