mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-15 21:17:34 +00:00
add time session
This commit is contained in:
parent
51b3abfbb0
commit
0f500ae9b4
|
@ -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
|
||||
|
|
|
@ -28,6 +28,8 @@ end
|
|||
local netFuncs = {
|
||||
[0] = function(ply)
|
||||
gmInte.userFinishConnect(ply)
|
||||
// set gmInteTime to acual time
|
||||
ply.gmIntTimeConnect = os.time()
|
||||
end,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user