Feat: add Nor Admin Mod for GMod compatibility

This commit is contained in:
linventif 2024-09-03 16:59:18 +02:00
parent 0ca3e89ed4
commit aab464b3ff

View File

@ -48,6 +48,8 @@ function gmInte.wsPlayerUpdateGroup(data)
if Mercury then RunConsoleCommand("hg", "setrank", data.steamID, data.group) end if Mercury then RunConsoleCommand("hg", "setrank", data.steamID, data.group) end
// FAdmin // FAdmin
if FAdmin then RunConsoleCommand("fadmin", "setaccess", data.steamID, data.group) end if FAdmin then RunConsoleCommand("fadmin", "setaccess", data.steamID, data.group) end
// Nor Admin Mod for GMod
if nordahl_cfg_3916 then RunConsoleCommand("add_staff", data.steamID64, "\"" .. data.steamID .. "\"", "\"" .. data.group .. "\"") end
gmInte.log("[Sync Role] Player " .. data.steamID .. " has been updated to group " .. data.group) gmInte.log("[Sync Role] Player " .. data.steamID .. " has been updated to group " .. data.group)
end end