Jump to content
Sign in to follow this  
DevMorgan

Portal time

Recommended Posts

How do I change this script to just open the time I want

 

exemple:

Time: 15

Minutes: 30

Close: 45

Day: 0,1,3,5,7

 

for me to leave the portals to appear at different times

 

SetMapEntryMapName(map, "darkblue")
    SetMapEntryTime(map, "2006/10/19/13/0", "0/1/0", "0/0/40", "0/0/45")

 

Share this post


Link to post
Share on other sites
SetMapEntryMapName(map, "darkblue")
	SetMapEntryTime(map, "2016/05/25/01/0", "2/15/0", "0/0/30", "0/0/45")

Opens every 2 days at 3pm, portal is open for 30mins and map for 45mins

Share this post


Link to post
Share on other sites

Days can do by this way (used in abb5+ to make it open just in weekends).

function can_open_entry_#YourMap#(map) 
    local Now_Week = GetNowWeek()
    if Now_Week == 1 or Now_Week == 3 or Now_Week == 5 or Now_Week == 7 then -- Monday, Wednesday, Friday & Sunday
        return 1
    end
        return 0
end 

 

  • Like 2

Download: Nightmare Demonic Helm

Dimension Pirates Online files: get now

New map Project: Flag PK

Black Skin 3.1.3 for pko 1: Get now

Share this post


Link to post
Share on other sites
2 hours ago, Onioni said:

Days can do by this way (used in abb5+ to make it open just in weekends).


function can_open_entry_#YourMap#(map) 
    local Now_Week = GetNowWeek()
    if Now_Week == 1 or Now_Week == 3 or Now_Week == 5 or Now_Week == 7 then -- Monday, Wednesday, Friday & Sunday
        return 1
    end
        return 0
end 

 

thankyou!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...