mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-15 22:27:34 +00:00
add: gmi export-warns
This commit is contained in:
parent
5127cc2307
commit
94879952e8
|
@ -2,14 +2,16 @@ function gmInte.playerWarn(ply, admin, reason)
|
|||
gmInte.http.post("/servers/:serverID/players/" .. ply:SteamID64() .. "/warns", {
|
||||
["player"] = gmInte.getPlayerFormat(ply),
|
||||
["admin"] = gmInte.getPlayerFormat(admin),
|
||||
["reason"] = reason
|
||||
["reason"] = reason,
|
||||
["date"] = os.time()
|
||||
})
|
||||
end
|
||||
|
||||
function gmInte.playerWarnID(plySteamID64, adminSteamID64, reason)
|
||||
gmInte.http.post("/servers/:serverID/players/" .. plySteamID64 .. "/warns", {
|
||||
["adminSteamID64"] = adminSteamID64,
|
||||
["reason"] = reason
|
||||
["reason"] = reason,
|
||||
["date"] = os.time()
|
||||
})
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user