Timer question?
#4

You could handle it as a playerstat. Make a new stat named something that covers the purpose of what you want. Could be, adminRevocationDate. Instead of setting up a timer, make that stat equal to a certain date (current date + 5 days).
On connect: Check whether the value of this stat is set in the first place. Then see if it's less than the current date. (You'll need some sneaky functions to deal with dates, I'm sure there are some out there)
In case the date you specified is passed, take the player's admin away.

ps.: edited my first post.
Reply


Messages In This Thread
Timer question? - by Naxix - 24.04.2010, 09:54
Re: Timer question? - by Harry_Gaill - 24.04.2010, 10:07
Re: Timer question? - by Naxix - 24.04.2010, 10:08
Re: Timer question? - by Harry_Gaill - 24.04.2010, 10:18

Forum Jump:


Users browsing this thread: 1 Guest(s)