setTimer(updatePlayerTime, 1000, 0)
function updatePlayerTime()
local players = getElementsByType("player")
for i,v in ipairs(players) do
if isGuestAccount(getPlayerAccount(v)) == false then
local theCurrentAccount = getPlayerAccount(v)
PlayerStats[ getAccountName(theCurrentAccount) ][ "time" ] = PlayerStats[ getAccountName(theCurrentAccount) ][ "time" ] + 1
end
end
end
А уж сколько раз в час обновлять таймер решишь сам.