How To Check If The Owner Hasn't Entered His House In 2 Weeks
#7

Use gettime() without any variables to retrieve a unix timestamp, store the returned value from gettime() in your HouseInfo[id][hLastVisitD] variable and perform a loop of all houses every 2 weeks, or every time your server starts and see whether the last visit date was over 1209600 seconds ago (basically, unix timestamps return the time since Jan 1 1970, perform a check to see whether the last visit date was 2 weeks ago).

I apologize if I failed to explain this properly.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)