AntiFiter
|
  |
| Joined: 14 May 2009 |
| Total Posts: 12290 |
|
|
| 03 Sep 2014 05:49 PM |
How would I go about creating a login award? (ex: every 12 hours)
I have the data store working, but what would I do? Have a seperate script doing a wait(x)? |
|
|
| Report Abuse |
|
Stefan631
|
  |
| Joined: 23 Dec 2010 |
| Total Posts: 1350 |
|
| |
|
| 03 Sep 2014 05:52 PM |
You would record the last time they played with os.time(), then whenever they join compare their last reward time to the current os.time(), and see if the difference is over 12 hours.
By the way, seconds -> 12 hours = seconds / (60 * 60 * 12) |
|
|
| Report Abuse |
|