fix broken time session

This commit is contained in:
Linventif 2024-01-08 21:15:43 +01:00
parent 60794972eb
commit 5f76915d7c
3 changed files with 3 additions and 4 deletions

View File

@ -5,7 +5,7 @@ if game.SinglePlayer() then return end
//
gmInte = {}
gmInte.version = "0.1.9"
gmInte.version = "0.2.0"
gmInte.config = {
["redownloadMaterials"] = false,
}

View File

@ -162,7 +162,7 @@ function gmInte.playerDisconnected(ply)
["deaths"] = ply:Deaths() || 0,
["customValues"] = getCustomValues(ply),
["rank"] = ply:GetUserGroup() || "user",
["time"] = os.difftime(os.time(), ply.gmIntTimeConnect) || 0,
["time"] = math.Round(RealTime() - ply.gmIntTimeConnect) || 0,
}
)
end

View File

@ -33,8 +33,7 @@ end
local netFuncs = {
[0] = function(ply)
gmInte.userFinishConnect(ply)
// set gmInteTime to acual time
ply.gmIntTimeConnect = os.time()
ply.gmIntTimeConnect = math.Round(RealTime())
end,
[1] = function(ply, data)
gmInte.testConnection(ply, data)