add chat cmd to screenshot

This commit is contained in:
Linventif 2024-01-17 03:42:22 +01:00
parent 4089d920ab
commit 0be3a8bd55

View File

@ -64,7 +64,24 @@ function gmInte.takeScreenShot(serverID, authToken)
) )
end end
//
// Concommands
//
concommand.Add("gmod_integration_admin", gmInte.openAdminConfig) concommand.Add("gmod_integration_admin", gmInte.openAdminConfig)
concommand.Add("gmod_integration_screenshot", function() concommand.Add("gmod_integration_screenshot", function()
gmInte.SendNet(4) 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) end)