mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-15 22:07:34 +00:00
add chat cmd to screenshot
This commit is contained in:
parent
4089d920ab
commit
0be3a8bd55
|
@ -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)
|
Loading…
Reference in New Issue
Block a user