forked from sirpapate/playercore
Fixed stupid mistake
This commit is contained in:
parent
01fd869fed
commit
a68e763c8a
@ -5,6 +5,7 @@
|
||||
"ignore" : [
|
||||
"*.cmd",
|
||||
"*.gma",
|
||||
"addonid.txt"
|
||||
"addonid.txt",
|
||||
".git*"
|
||||
]
|
||||
}
|
||||
|
@ -414,7 +414,7 @@ local function printColorVarArg(ply, target, typeids, ...)
|
||||
end
|
||||
end
|
||||
|
||||
target = isentity(target) and {target}
|
||||
target = isentity(target) and {target} or target
|
||||
target = target or player.GetAll()
|
||||
|
||||
local plys = {}
|
||||
@ -456,7 +456,7 @@ local function printColorArray(ply, target, arr)
|
||||
end
|
||||
end
|
||||
|
||||
target = isentity(target) and {target}
|
||||
target = isentity(target) and {target} or target
|
||||
target = target or player.GetAll()
|
||||
|
||||
local plys = {}
|
||||
|
@ -40,10 +40,11 @@ if SERVER then
|
||||
ULib.ucl.registerAccess("messagecolor", {"user", "operator", "admin", "superadmin"}, "", "PlayerCore")
|
||||
ULib.ucl.registerAccess("globalmessage", {"user", "operator", "admin", "superadmin"}, "", "PlayerCore")
|
||||
ULib.ucl.registerAccess("globalmessagecenter", {"user", "operator", "admin", "superadmin"}, "", "PlayerCore")
|
||||
ULib.ucl.registerAccess("globalmessagecolor", {"user", "operator", "admin", "superadmin"}, "", "PlayerCore")
|
||||
|
||||
hook.Add("PlyCoreCommand", "ULX_PlyCore_Access", function(ply, target, command)
|
||||
if ULib.ucl.query(ply, command) then
|
||||
if not IsValid(target) or target:IsPlayer() then return true end
|
||||
if not IsValid(target) then return true end
|
||||
|
||||
if ULib.ucl.query(ply, "target_himself") then
|
||||
if ply == target then
|
||||
|
Loading…
Reference in New Issue
Block a user