add: gmod_integration_test_error && gmod_integration_screen

This commit is contained in:
Linventif 2024-08-14 13:24:27 +00:00
parent b8d6c2e87d
commit 98a2d421bd
2 changed files with 6 additions and 2 deletions

View File

@ -47,6 +47,7 @@ function gmInte.takeScreenShot()
end
concommand.Add("gmi_screen", gmInte.takeScreenShot)
concommand.Add("gmod_integration_screen", gmInte.takeScreenShot)
hook.Add("OnPlayerChat", "gmInteChatCommands", function(ply, text, teamChat, isDead)
if ply != LocalPlayer() then return end
text = string.lower(text)

View File

@ -1,4 +1,4 @@
concommand.Add("gmi_test_error", function(ply, cmd, args)
local function testConError(ply, cmd, args)
if ply && !ply:gmIntIsAdmin() then
if SERVER then return end
print("[Gmod Integration] Missing permissions to run this command")
@ -19,4 +19,7 @@ concommand.Add("gmi_test_error", function(ply, cmd, args)
error("This is a test error")
end
end
end)
end
concommand.Add("gmod_integration_test_error", testConError)
concommand.Add("gmi_test_error", testConError)