mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-16 23:27:35 +00:00
19 lines
401 B
Lua
19 lines
401 B
Lua
//
|
|
// Hook
|
|
//
|
|
|
|
// Player Finish Init
|
|
hook.Add("InitPostEntity", "gmInte:Ply:Ready", function()
|
|
gmInte.SendNet("ready")
|
|
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") then
|
|
gmInte.openAdminConfig()
|
|
return true
|
|
end
|
|
end) |