mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-15 22:27:34 +00:00
edit: player format
This commit is contained in:
parent
2b7b01b132
commit
11be2c9d06
|
@ -1 +0,0 @@
|
|||
//
|
|
@ -9,6 +9,9 @@ function gmInte.getPlayerFormat(ply)
|
|||
["deaths"] = ply:Deaths(),
|
||||
["customValues"] = ply:gmIntGetCustomValues(),
|
||||
["connectTime"] = math.Round(RealTime() - ply:gmIntGetConnectTime()),
|
||||
["ping"] = ply:Ping(),
|
||||
["pos"] = gmInte.getVectorFormat(ply:GetPos()),
|
||||
["ang"] = gmInte.getAngleFormat(ply:EyeAngles())
|
||||
}
|
||||
end
|
||||
|
||||
|
@ -21,7 +24,7 @@ function gmInte.getServerFormat()
|
|||
["players"] = #player.GetAll(),
|
||||
["maxPlayers"] = game.MaxPlayers(),
|
||||
["gameMode"] = engine.ActiveGamemode(),
|
||||
["uptime"] = math.Round(RealTime() / 60)
|
||||
["uptime"] = math.Round(RealTime())
|
||||
}
|
||||
end
|
||||
|
||||
|
@ -57,7 +60,7 @@ function gmInte.getAngleFormat(ang)
|
|||
}
|
||||
end
|
||||
|
||||
local function gmInte.getTeamFormat(teamID)
|
||||
function gmInte.getTeamFormat(teamID)
|
||||
return {
|
||||
["id"] = teamID,
|
||||
["name"] = team.GetName(teamID)
|
Loading…
Reference in New Issue
Block a user