OldHero 12 Report post Posted August 15, 2016 Hello i have question how i can make example cod map open every 2pm,am ,5 pm,am / 8pm,am Quote Share this post Link to post Share on other sites
Vasil 71 Report post Posted August 15, 2016 1 hour ago, OldHero said: Hello i have question how i can make example cod map open every 2pm,am ,5 pm,am / 8pm,am You don't know mathematics? Quote Share this post Link to post Share on other sites
OldHero 12 Report post Posted August 15, 2016 Ik this but i dont want it open like it every 3h i want just like 2 pm 5 pm and 8 pm u can make me that so i will understand than better cleaner if its not prob bro ? Quote Share this post Link to post Share on other sites
OldHero 12 Report post Posted August 15, 2016 and am .. too Quote Share this post Link to post Share on other sites
Totoka 152 Report post Posted August 15, 2016 this may useful for you. Quote Discord: andresc Share this post Link to post Share on other sites
Shako 97 Report post Posted August 16, 2016 @OldHero Quote function can_open_entry_YOURMAP( map ) local Now_Time = GetNowTime() local Day_of_Week = GetNowWeek() if Day_of_Week == 6 or Day_of_Week == 7 then if Now_Time == 0 or Now_Time == 12 then return 1 else return 0 end end end This script will let your map open only on Saturday and Sunday, only at 12 AM and 12 PM. Not tested, if u use it tell me how it goes. 1 Quote Sunny Go! Online pko.host Share this post Link to post Share on other sites
OldHero 12 Report post Posted August 16, 2016 TY SHAKO BUT I NEED FOR EVERYDAY Quote Share this post Link to post Share on other sites
V3ct0r 2,117 Report post Posted August 16, 2016 @OldHero What the problem? Just delete if condition for days function can_open_entry_YOURMAP( map ) local Now_Time = GetNowTime() if Now_Time == 0 or Now_Time == 12 then return 1 else return 0 end end 1 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
OldHero 12 Report post Posted November 16, 2016 Hey. But what if i want example it open every 2 pm am and port close at 30 and map at 45 ? hm ? Quote Share this post Link to post Share on other sites
Ximboliex 86 Report post Posted November 16, 2016 @OldHero; Come on boy I know you can finish the script I know you can only think about what you want and analyze how to implement it .. try to do it as best as you can post it and I correct it. Quote Share this post Link to post Share on other sites
OldHero 12 Report post Posted November 16, 2016 I dont know actually i try but fail that why im asking help Quote Share this post Link to post Share on other sites
Totoka 152 Report post Posted November 16, 2016 hey @OldHero here a pic from DW ctrl.lua: Pay attention at these numbers, you don't recognise them at all? Quote Discord: andresc Share this post Link to post Share on other sites
OldHero 12 Report post Posted November 16, 2016 @Totoka Hm bro can you make me 1x example it like dw open every 2,4,6,8 pm and am hmm ? Quote Share this post Link to post Share on other sites
AlGhoul 66 Report post Posted November 16, 2016 6 minutes ago, OldHero said: @Totoka Hm bro can you make me 1x example it like dw open every 2,4,6,8 pm and am hmm ? function can_open_entry_deathcircle( map ) local Now_Time = GetNowTime() if Now_Time == 2 or Now_Time == 4 or Now_Time == 6 or Now_Time == 8 or Now_Time == 14 or Now_Time == 16 or Now_Time == 18 or Now_time == 20 then return 1 else return 0 end end 1 Quote Kind regards, AG. Share this post Link to post Share on other sites
Lucky 65 Report post Posted November 16, 2016 put interval to 0/2/0 1 Quote Share this post Link to post Share on other sites
Ximboliex 86 Report post Posted November 16, 2016 @OldHero; Every 2 hours SetMapEntryTime(map, "2016/5/27/1/0", "0/2/0", "0/0/40", "0/0/25") Quote Share this post Link to post Share on other sites
AlGhoul 66 Report post Posted November 16, 2016 Just now, Ximboliex said: @OldHero; Every 2 hours SetMapEntryTime(map, "2016/5/27/1/0", "0/2/0", "0/0/40", "0/0/25") he dont want it every 2 hours he want 2,4,6,8 so he must use can_open_entry Quote Kind regards, AG. Share this post Link to post Share on other sites
AlGhoul 66 Report post Posted November 16, 2016 (edited) @Lucky he dont want it every 2 hours he want 2,4,6,8 so he must use can_open_entry Edited November 16, 2016 by J0k3r 1 Quote Kind regards, AG. Share this post Link to post Share on other sites
Ximboliex 86 Report post Posted November 16, 2016 20 minutes ago, Totoka said: hey @OldHero here a pic from DW ctrl.lua: Pay attention at these numbers, you don't recognise them at all? @Totoka; I like the skin of your editor, what's the theme called? Quote Share this post Link to post Share on other sites
Shako 97 Report post Posted November 16, 2016 Idk why you would want this but try @J0k3r's script it should work. Just modify now time to whatever time u want it to open. 1 Quote Sunny Go! Online pko.host Share this post Link to post Share on other sites
AlGhoul 66 Report post Posted November 16, 2016 (edited) 7 minutes ago, Shako said: Idk why you would want this but try @J0k3r's script it should work. Just modify now time to whatever time u want it to open. can_open_entry functions a good funcs i tested it and u could put this local Hour = os.date("%I") -- Hour Scripts local Minute = os.date("%M") -- Minute Scripts local Second = os.date("%p") -- AM/PM local Day = os.date("%d") -- Day Scripts local Month = os.date("%b") -- Month Scripts local Year = os.date("%Y") -- Year Scripts local DD = os.date("%A") -- Day Name print( "your MAPNAME Opened At:"..Day..":"..Hour..":"..Minute..":"..Second.."" )below this functions function after_create_entry(entry) in entry.lua this is how i test my maps while sleeping and this will print when ur port opened in ur gs Edited November 16, 2016 by J0k3r Quote Kind regards, AG. Share this post Link to post Share on other sites
OldHero 12 Report post Posted November 16, 2016 @J0k3r hey bro i made this same way but example i made 2 pm and i want ca port close at 30 and map at 40 .. hmm what do i need add ? Quote Share this post Link to post Share on other sites
AlGhoul 66 Report post Posted November 16, 2016 3 minutes ago, OldHero said: @J0k3r hey bro i made this same way but example i made 2 pm and i want ca port close at 30 and map at 40 .. hmm what do i need add ? can_open_entry only control when port open , so u can control when close from here SetMapEntryTime(map, "2006/10/18/1/0", "0/0/0", "0/0/0", "0/0/0") as normal Quote Kind regards, AG. Share this post Link to post Share on other sites
OldHero 12 Report post Posted November 16, 2016 hEY I ADDED ALL AND STILL MY CA WONT OPEN Quote Share this post Link to post Share on other sites
Shako 97 Report post Posted November 16, 2016 (edited) 1 hour ago, Totoka said: hey @OldHero here a pic from DW ctrl.lua: Pay attention at these numbers, you don't recognise them at all? @OldHero Edited November 16, 2016 by Shako Quote Sunny Go! Online pko.host Share this post Link to post Share on other sites