View Single Post
  #3  
Old 08-30-2011, 04:03 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
When the player rents time in whatever service, store the time when it expires (timevar2+6) in a clientr flag. I.e: clientr.rentexpires

Then all you need to do is check if timevar2 is greater than or equal to clientr.rentexpires and act accordingly.

You don't have to use clientr flags either, if it's a house you can store it in a DB as well.
__________________
Quote:
Reply With Quote