2022-01-02, 07:51 PM
Use unix time.
PHP Code:
// On player logged-in
format(query, sizeof query, "UPDATE `users` SET `last_login` = %i WHERE `id` = %i", gettime(), id);
// Check?player last login
cache_get_value_name_int(0, "last_login", value);
if(gettime()-value > 60*60*24*30) {
? ? // 30 days passed from last login
}