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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×