mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-15 14:37: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)
|
||||
if ply && ply:IsValid() then ply:SetUserGroup(data.group) end
|
||||
// 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
|
||||
if serverguard then
|
||||
local ply = player.GetBySteamID(data.steamID)
|
||||
|
|
Loading…
Reference in New Issue
Block a user