View Single Post
  #5  
Old 08-25-2011, 12:47 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by Astram View Post
Explain more
timevar2 on the serverside is basically a UNIX time stamp with millisecond precision, but with the milliseconds moved to the decimals. You could do something similar to this:
PHP Code:
player.clientr.jailReleaseTime timevar2 3600// release in an hour 
And then just check periodically and whenever the player logs on:
PHP Code:
if (timevar2 >= player.clientr.jailReleaseTime)
  
// release the player from jail/whatever 
Reply With Quote