generated from Jaysyn/ModuleTemplate
2026/02/24 Update
Disable Cleric / Deity checks Updated PRC8 includes
This commit is contained in:
@@ -685,4 +685,17 @@ string SQLocalsPlayer_GetLastUpdated_UTC(object oPlayer, string sVarName, int nT
|
||||
return SqlGetString(sql, 0);
|
||||
else
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Returns the current Unix timestamp (seconds since 1970-01-01)
|
||||
int GetCurrentUnixTimestamp()
|
||||
{
|
||||
sqlquery sql = SqlPrepareQueryObject(GetModule(),
|
||||
"SELECT strftime('%s','now');");
|
||||
|
||||
if (SqlStep(sql))
|
||||
return SqlGetInt(sql, 0);
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user