Closed Myaats closed 7 years ago
Yeah. @CapsAdmin said that actually
high level of shitcode. This is ideal.
if CLIENT then
function Say(str)
RunConsoleCommand("say", str)
end
elseif SERVER then
function Say(...)
local first = true
local msg = ""
for _, v in pairs({...}) do
if first then
first = false
else
msg = msg .. " "
end
msg = msg .. tostring(v)
end
msg = msg:gsub("\n", ""):gsub(";", ":"):gsub("\"", "'")
game.ConsoleCommand("say " .. msg .. "\n")
end
end
Maybe less argument if pr closed
this should be added to easylua