MR.GNA7 Posted February 26, 2018 Share Posted February 26, 2018 How do you guys want the code of a plate open to the owner 20 hours I'm sorry if the story is wrong or I have a subject here Link to comment
MrBiG Posted March 14, 2018 Share Posted March 14, 2018 On ٢٦/٢/٢٠١٨ at 16:30, MR.GNA7 said: How do you guys want the code of a plate open to the owner 20 hours I'm sorry if the story is wrong or I have a subject here I don't understand what you says Link to comment
XaskeL Posted March 16, 2018 Share Posted March 16, 2018 My simple example: local days = getRealTime().timestamp + (20 * 3600) -- 1 hour = 3600 second, timestamp = unix time epoch as it started 01.01.1970 -- save in database (days) -- check time: -- read value days from db if (getRealTime().timestamp < days) then --(/localtime < future time) return true; // active 20 hours :) return true end Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now