mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-15 22:07:34 +00:00
add: gmod_integration_test_error && gmod_integration_screen
This commit is contained in:
parent
b8d6c2e87d
commit
98a2d421bd
|
@ -47,6 +47,7 @@ function gmInte.takeScreenShot()
|
||||||
end
|
end
|
||||||
|
|
||||||
concommand.Add("gmi_screen", gmInte.takeScreenShot)
|
concommand.Add("gmi_screen", gmInte.takeScreenShot)
|
||||||
|
concommand.Add("gmod_integration_screen", gmInte.takeScreenShot)
|
||||||
hook.Add("OnPlayerChat", "gmInteChatCommands", function(ply, text, teamChat, isDead)
|
hook.Add("OnPlayerChat", "gmInteChatCommands", function(ply, text, teamChat, isDead)
|
||||||
if ply != LocalPlayer() then return end
|
if ply != LocalPlayer() then return end
|
||||||
text = string.lower(text)
|
text = string.lower(text)
|
||||||
|
|
|
@ -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 ply && !ply:gmIntIsAdmin() then
|
||||||
if SERVER then return end
|
if SERVER then return end
|
||||||
print("[Gmod Integration] Missing permissions to run this command")
|
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")
|
error("This is a test error")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
end
|
||||||
|
|
||||||
|
concommand.Add("gmod_integration_test_error", testConError)
|
||||||
|
concommand.Add("gmi_test_error", testConError)
|
Loading…
Reference in New Issue
Block a user