mirror of
https://github.com/gmod-integration/lua.git
synced 2025-04-29 22:15:26 +00:00
refact: admin menu
This commit is contained in:
parent
083aadefe3
commit
baadebd517
|
@ -396,4 +396,12 @@ function gmInte.openConfigMenu(data)
|
|||
end
|
||||
|
||||
concommand.Add("gmod_integration_admin", function() gmInte.SendNet("getConfig") end)
|
||||
concommand.Add("gmi_admin", function() gmInte.SendNet("getConfig") end)
|
||||
concommand.Add("gmi_admin", function() gmInte.SendNet("getConfig") end)
|
||||
hook.Add("OnPlayerChat", "gmInte:OnPlayerChat:AdminCmd", function(ply, strText, bTeamOnly, bPlayerIsDead)
|
||||
if ply != LocalPlayer() then return end
|
||||
strText = string.lower(strText)
|
||||
if strText == "/gmi" || strText == "!gmi" then
|
||||
gmInte.openAdminConfig()
|
||||
return true
|
||||
end
|
||||
end)
|
|
@ -1,8 +0,0 @@
|
|||
hook.Add("OnPlayerChat", "gmInte:OnPlayerChat:AdminCmd", function(ply, strText, bTeamOnly, bPlayerIsDead)
|
||||
if ply != LocalPlayer() then return end
|
||||
strText = string.lower(strText)
|
||||
if strText == "/gmi" || strText == "!gmi" then
|
||||
gmInte.openAdminConfig()
|
||||
return true
|
||||
end
|
||||
end)
|
Loading…
Reference in New Issue
Block a user