addEventHandler("onPlayerLogout", root,
function()
local account = getPlayerAccount(source)
setAccountData(account, "toptime", getElementData(source, "Top Time"))
end
)
addEventHandler("onPlayerLogin", root,
function()
local account = getPlayerAccount(source)
setElementData(source, "Top Time", getAccountData(account, "toptime"))
end
)
About the second one, I don't have idea.