add sborka

This commit is contained in:
2026-03-31 10:27:04 +03:00
commit f5e5f56c84
2345 changed files with 382127 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
util.AddNetworkString("EventMessage")
util.AddNetworkString("AnnounceMessage")
function PLUGIN:PlayerSay(ply, text)
local userGroup = ply:GetUserGroup() or ""
if userGroup == "superadmin" or userGroup == "ivent" then
if string.StartWith(text, "/event ") then
local msg = string.sub(text, 8)
net.Start("EventMessage")
net.WriteString(msg)
net.Broadcast()
return ""
elseif string.StartWith(text, "/annonce ") then
local msg = string.sub(text, 10)
net.Start("AnnounceMessage")
net.WriteString(msg)
net.Broadcast()
return ""
end
end
end