add time session

This commit is contained in:
Linventif 2023-11-05 03:52:07 +01:00
parent 51b3abfbb0
commit 0f500ae9b4
2 changed files with 4 additions and 1 deletions

View File

@ -141,8 +141,9 @@ function gmInte.playerDisconnected(ply)
["steam"] = ply:SteamID64(),
["kills"] = ply:Frags() || 0,
["deaths"] = ply:Deaths() || 0,
["money"] = ply:gmInteGetTotalMoney(),
["money"] = ply:gmInteGetTotalMoney() || 0,
["rank"] = ply:GetUserGroup() || "user",
["time"] = os.difftime(os.time(), ply.gmIntTimeConnect) || 0,
}
)
end

View File

@ -28,6 +28,8 @@ end
local netFuncs = {
[0] = function(ply)
gmInte.userFinishConnect(ply)
// set gmInteTime to acual time
ply.gmIntTimeConnect = os.time()
end,
}