Jump to content
Sign in to follow this  
wizel1

map time

Recommended Posts

any have script of how can show info of certain map if player do chat handle in local?

 

example:

 

/map

demonic world - open in X hours

opesn every x hours

opened/closed rigtht now

Share this post


Link to post
Share on other sites
On 4/29/2019 at 11:08 PM, Greaux said:

I think @V3ct0r can make mod for you, which parse time info from web to game

he can done it by lua too, just need to write few lines.

Share this post


Link to post
Share on other sites

I’m have handlechat can do /forge etc but I want display info about a certain map or a list of maps  can some provide example?

Share this post


Link to post
Share on other sites
	local chaosargent = Centertext("Chaos.Argent-Icicle City (1371,532)")
		 chaosargent = chaosargent..Centertext("---------- Time of opening ----------")
		  chaosargent = chaosargent.. Centertext("02:00, 14:00, Server time.")
	HelpInfo(role, 0, chaosargent)

you can using something like this
take a look to your maps time
do some math with servertime and map time and do it 
 

Share this post


Link to post
Share on other sites
3 minutes ago, mkhzaleh said:

	local chaosargent = Centertext("Chaos.Argent-Icicle City (1371,532)")
		 chaosargent = chaosargent..Centertext("---------- Time of opening ----------")
		  chaosargent = chaosargent.. Centertext("02:00, 14:00, Server time.")
	HelpInfo(role, 0, chaosargent)

you can using something like this
take a look to your maps time
do some math with servertime and map time and do it 
 

how can open this menu with /map or /maptime ? 

Share this post


Link to post
Share on other sites

Hello @wizel1!

 

On 5/1/2019 at 5:40 PM, wizel1 said:

how can open this menu with /map or /maptime ? 

function HandleChat(role, message)
	
  if (message == "/maptime") then
    
    -- Show here map time
    
    return 0
    
  end
  
  return 1
  
end

 


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...