Jump to content
flamyman1412

Help Me function can_open_entry

Recommended Posts

I used this function but Portal is still open.
I chose the time 8,10,12,16,18 but 14 still open the Portal Stay the same
How do I fix it?

=======================================

function can_open_entry_garner2( map )
    local Now_Time = GetNowTime()
    if Now_Time == 8 or Now_Time == 10 or Now_Time == 12 or Now_Time == 16 or Now_Time == 18 then
        return 1
    else
        return 0
    end

end

Share this post


Link to post
Share on other sites
function can_open_entry_garner2( map )
	local now_hour= os.date("%H")		--- hour--- 
--	now_week= tonumber(now_week)
	now_hour= tonumber(now_hour)
 if now_hour == 18   then
    return 1
	else
	return 0
 end


end

 

Share this post


Link to post
Share on other sites
5 hours ago, mkhzaleh said:

function can_open_entry_garner2( map )
	local now_hour= os.date("%H")		--- hour--- 
--	now_week= tonumber(now_week)
	now_hour= tonumber(now_hour)
 if now_hour == 18   then
    return 1
	else
	return 0
 end


end

 

Still the same

 

1.jpg

2.jpg

4.jpg

5.jpg

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