1
0

Fixed stupid mistake

This commit is contained in:
Sir Papate 2017-09-16 16:52:40 -04:00
parent 01fd869fed
commit a68e763c8a
3 changed files with 6 additions and 4 deletions

View File

@ -5,6 +5,7 @@
"ignore" : [
"*.cmd",
"*.gma",
"addonid.txt"
"addonid.txt",
".git*"
]
}

View File

@ -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 = {}

View File

@ -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