Спасибо за ответ!
local prohibitedCommand = {["say"] = true, ["msg"] = true, ["nick"] = true, ["me"] = true}
function prohibitCmd(cmd)
if (prohibitedCommand[cmd]) then
outputConsole("Эта команда запрещена.")
print("Player executed: " .. cmd)
cancelEvent()
end
end
addEventHandler("onPlayerCommand", getRootElement(), prohibitCmd)