Skip to content
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.

Commit

Permalink
Update sh_basic_commands.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
sophfee authored Dec 17, 2021
1 parent 049e297 commit 5caa8a6
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions plugins/sh_basic_commands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -247,3 +247,30 @@ landis.RegisterChatCommand("/setteam",{

end
})

if SERVER then
util.AddNetworkString("landisOOCMessage")
end

if CLIENT then
landis.DefineSetting("oocEnabled",{type="tickbox",name="OOC Chat Enabled",default=true,category="Chatbox"})
net.Receive("landisOOCMessage",function()
local txt = net.ReadString()
if landis.GetSetting("oocEnabled") then
end
end)
end

local oocCommand = {
RequireAlive = false,
RequireArgs = true,
PermissionLevel = PERMISSION_LEVEL_USER,
HelpDescription = "Send an out of character message",
onRun = function(self,ply,args)
local text = table.concat(args, " ")
for v,k in ipairs(player.get
end
}

-- OOC
landis.RegisterChatCommand("/ooc",)

0 comments on commit 5caa8a6

Please sign in to comment.