forked from sirpapate/playercore
Remove vararg funcs (#4)
This commit is contained in:
parent
e95caad48f
commit
f17b64ca4d
@ -427,12 +427,6 @@ e2function void sendMessageColor(array arr)
|
||||
printColorArray(self.player, player.GetAll(), arr)
|
||||
end
|
||||
|
||||
e2function void sendMessageColor(...)
|
||||
if not hasAccess(self.player, nil, "globalmessagecolor") then return nil end
|
||||
|
||||
printColorVarArg(self.player, player.GetAll(), typeids, ...)
|
||||
end
|
||||
|
||||
e2function void entity:sendMessageColor(array arr)
|
||||
if not ValidPly(this) then return end
|
||||
if not hasAccess(self.player, this, "messagecolor") then return nil end
|
||||
@ -440,13 +434,6 @@ e2function void entity:sendMessageColor(array arr)
|
||||
printColorArray(self.player, this, arr)
|
||||
end
|
||||
|
||||
e2function void entity:sendMessageColor(...)
|
||||
if not ValidPly(this) then return end
|
||||
if not hasAccess(self.player, this, "messagecolor") then return nil end
|
||||
|
||||
printColorVarArg(self.player, this, typeids, ...)
|
||||
end
|
||||
|
||||
e2function void array:sendMessageColor(array arr)
|
||||
if not hasAccess(self.player, nil, "messagecolor") then return end
|
||||
|
||||
@ -463,22 +450,6 @@ e2function void array:sendMessageColor(array arr)
|
||||
printColorArray(self.player, plys, arr)
|
||||
end
|
||||
|
||||
e2function void array:sendMessageColor(...)
|
||||
if not hasAccess(self.player, nil, "messagecolor") then return end
|
||||
|
||||
local plys = {}
|
||||
|
||||
for _, ply in pairs(this) do
|
||||
if ValidPly(ply) then
|
||||
if hasAccess(self.player, ply, "messagecolor") ~= false then
|
||||
table.insert(plys, ply)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
printColorVarArg(self.player, plys, typeids, ...)
|
||||
end
|
||||
|
||||
|
||||
--[[############################################]]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user