27.11.2014, 18:27
hello .. how can I do a timer to automatically release a property if the owner does not log within 10 days?
new OwnerLastLoggedIn;//somewhere
OwnerLastLoggedIn = gettime();
//"gettime() - OwnerLastLoggedIn" will be the amount of seconds passed since last login
if((gettime() - OwnerLastLoggedIn) >= 864000)//864000 10 days in seconds
{
//player can buy property owner was last logged in 10 days or more ago
}