|
| 12 May 2016 09:18 AM |
| I've been having issues with games that require a lot of physics such as Ro-Sports. There seems to be a lot of delay on the reaction times of an object and I was wondering. Is there any way only people from X region such as North American/South American/Europe etc, can only join that place. It seems the delay come when people for different regions are in 1 place, I've noticed this difference when Europeans are unable to join my games because either really late for them or festive days that Europeans don't have (I'm from U.S). I want to be able to restrict my place for only North Americans because I've been really having a bad experience with all the delay. Please if theres any way please inform me, It would totally change my experience and probably make it great again. |
|
|
| Report Abuse |
|
|
| |
|
WoolHat
|
  |
| Joined: 19 May 2013 |
| Total Posts: 1873 |
|
|
| 12 May 2016 01:34 PM |
| Compare the os.time(). If it's not in one of three standard time zones, kick the player. |
|
|
| Report Abuse |
|
|
|
| 13 May 2016 10:41 AM |
| Wow never knew that function existed, Thanks a lot!. Is there any other functions related to that? As in regions and stuff? |
|
|
| Report Abuse |
|
|
WoolHat
|
  |
| Joined: 19 May 2013 |
| Total Posts: 1873 |
|
|
| 13 May 2016 11:06 AM |
I had my description a little off. I meant to say tick. tick() will find the local timezone's time (note:not the timezone) in seconds.
os.time(Table) finds a global time (UTC), and if you give it a table as an argument, it will return a table with the following components: year month day hour min second idst
You would find the hour of the tick (I'm sure you can find an equation for it) and compare it to the os.time |
|
|
| Report Abuse |
|
|
|
| 13 May 2016 11:38 AM |
| Thanks for the help, I'll attempt to figure this out. Might have to ask some friends to help me out. Thanks! |
|
|
| Report Abuse |
|
|