mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-16 05:07:34 +00:00
remove chat cmd
This commit is contained in:
parent
0060424f85
commit
88841e7699
|
@ -1,23 +1,9 @@
|
||||||
|
//
|
||||||
// Functions
|
// Functions
|
||||||
|
//
|
||||||
|
|
||||||
function gmInte.log(msg, debug)
|
function gmInte.log(msg, debug)
|
||||||
if (debug && !gmInte.config.debug) then return end
|
if (debug && !gmInte.config.debug) then return end
|
||||||
//format: [2021-08-01 00:00:00] [INFO] msg
|
//format: [2021-08-01 00:00:00] [INFO] msg
|
||||||
print("[" .. os.date("%Y-%m-%d %H:%M:%S") .. "] [Gmod Integration] " .. msg)
|
print("[" .. os.date("%Y-%m-%d %H:%M:%S") .. "] [Gmod Integration] " .. msg)
|
||||||
end
|
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)
|
|
Loading…
Reference in New Issue
Block a user