mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-15 17:47:34 +00:00
add: ulx removeUser if user
This commit is contained in:
parent
e3e4b6a0f7
commit
df5701ed4f
|
@ -8,7 +8,14 @@ function gmInte.wsPlayerUpdateGroup(data)
|
||||||
local ply = player.GetBySteamID(data.steamID)
|
local ply = player.GetBySteamID(data.steamID)
|
||||||
if ply && ply:IsValid() then ply:SetUserGroup(data.group) end
|
if ply && ply:IsValid() then ply:SetUserGroup(data.group) end
|
||||||
// ULX
|
// ULX
|
||||||
if ULib then ULib.ucl.addUser(data.steamID, nil, nil, data.group) end
|
if ULib then
|
||||||
|
if data.group == "user" then
|
||||||
|
ULib.ucl.removeUser(data.steamID)
|
||||||
|
else
|
||||||
|
ULib.ucl.addUser(data.steamID, nil, nil, data.group)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
// ServerGuard
|
// ServerGuard
|
||||||
if serverguard then
|
if serverguard then
|
||||||
local ply = player.GetBySteamID(data.steamID)
|
local ply = player.GetBySteamID(data.steamID)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user