mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-15 17:47:34 +00:00
Fix: add player to teamChange
This commit is contained in:
parent
8231f4a9ac
commit
94ebf5cba6
|
@ -24,6 +24,7 @@ end
|
|||
function gmInte.playerChangedTeam(ply, oldTeam, newTeam)
|
||||
if !ply:IsValid() || !ply:IsPlayer(ply) then return end
|
||||
gmInte.http.post("/servers/:serverID/players/" .. ply:SteamID64() .. "/team", {
|
||||
["player"] = gmInte.getPlayerFormat(ply),
|
||||
["oldTeam"] = gmInte.getTeamFormat(oldTeam),
|
||||
["newTeam"] = gmInte.getTeamFormat(newTeam)
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user