diff --git a/lua/gmod_integration/client/cl_main.lua b/lua/gmod_integration/client/cl_main.lua index 57bfbdc..429d0a6 100644 --- a/lua/gmod_integration/client/cl_main.lua +++ b/lua/gmod_integration/client/cl_main.lua @@ -64,7 +64,24 @@ function gmInte.takeScreenShot(serverID, authToken) ) end +// +// Concommands +// + concommand.Add("gmod_integration_admin", gmInte.openAdminConfig) concommand.Add("gmod_integration_screenshot", function() gmInte.SendNet(4) +end) + +// +// Chat Commands +// + +hook.Add("OnPlayerChat", "gmInteChatCommands", function(ply, text, teamChat, isDead) + if (ply != LocalPlayer()) then return end + text = string.lower(text) + text = string.sub(text, 2) + if (text == "screen") then + gmInte.SendNet(4) + end end) \ No newline at end of file