From 88841e7699e46b2b3f14dda63ec2751b1df2356d Mon Sep 17 00:00:00 2001 From: Linventif Date: Mon, 25 Sep 2023 11:14:42 +0200 Subject: [PATCH] remove chat cmd --- lua/gmod_integration/shared/sh_main.lua | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/lua/gmod_integration/shared/sh_main.lua b/lua/gmod_integration/shared/sh_main.lua index 03e0274..d2d283d 100644 --- a/lua/gmod_integration/shared/sh_main.lua +++ b/lua/gmod_integration/shared/sh_main.lua @@ -1,23 +1,9 @@ +// // Functions +// + function gmInte.log(msg, debug) if (debug && !gmInte.config.debug) then return end //format: [2021-08-01 00:00:00] [INFO] msg print("[" .. os.date("%Y-%m-%d %H:%M:%S") .. "] [Gmod Integration] " .. msg) -end - -// Chat Command -local trigger = { - "link", - "gmint", - "gminte" -} - -hook.Add("OnPlayerChat", "gm_inte:con-chat", function(ply, strText, bTeam, bDead) - if (ply != LocalPlayer() ) then return end - - strText = string.sub(string.lower(strText ), 2) - if (table.HasValue(trigger, strText)) then - gui.OpenURL("https://vetif.gmod-integration.com") - return true - end -end) \ No newline at end of file +end \ No newline at end of file