Jump to content
OldHero

Map Timing

Recommended Posts

5 hours ago, OldHero said:

hEY I ADDED ALL AND STILL MY CA WONT OPEN O.o

Is your map active within at least one of your opened gameservers? >.<

 

 

If you want custom times without an interval, but having a pattern, you can also mix both provided answers:

6 hours ago, Ximboliex said:

@OldHero;

Every 2 hours

 


    SetMapEntryTime(map, "2016/5/27/1/0", "0/2/0", "0/0/40", "0/0/25")

@Ximboliex in your answer, there is something that you may want to fix, el tiempo de portal es mayor a la duración de el mapa

 

6 hours ago, J0k3r said:

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 

 

 

 

And then, Just discard these hours that you do not want

function can_open_entry_deathcircle( map ) 
    -- it will run each 2 hours, until portal close time, because you had a pattern defined like ximboliex example
    local h12 = os.time("%I");
    if h12 == 10 or h12 == 12 then
        return 0 -- but you don't want ppl to join on 00h or 12h, 10h or 22h
    else
        return 1 -- allowing all remaining hours here.
    end
end 

 


Discord: andresc

Share this post


Link to post
Share on other sites

this is much information, if u can't get it to work either ure doing it completely wrong or the problem is somewhere else.


logo-big.png   logo.png

                                   Sunny Go! Online                                                                    pko.host                                                 

Share this post


Link to post
Share on other sites
45 minutes ago, Vasil said:

i guess he must delete the old map time function and replace it by that? just leaving where the map runs as "garner" or something?

Why "garner" if they are talking about Chaos Argent? It stays as "garner2".

Share this post


Link to post
Share on other sites
9 hours ago, Angelix said:

Why "garner" if they are talking about Chaos Argent? It stays as "garner2".

soooooo your puzzleworld map doesnt run in garner exactly in snow mountain RIGHT?

Share this post


Link to post
Share on other sites
Guest
14 minutes ago, OldHero said:

Hi Guys but i still have prob for,cod,vod maps it dont work when i add it O.o no error map just dont open ??

not sure but as far as I remember you can't run them in the same game server.

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.


×
×
  • Create New...