dobrograd-13-06-2022/garrysmod/addons/feature-gmpanel/lua/gmpanel/actions/commands/server.lua

8 lines
259 B
Lua
Raw Normal View History

2023-11-16 15:01:19 +05:00
gmpanel.registerAction('commands', function(obj, ply)
if not isstring(obj.value) then return false end
local cmd, players = obj.value, gmpanel.buildTargets(obj.players or {})
for _,pl in ipairs(players) do
ply:Say(cmd:gsub('@p', pl:SteamID()))
end
end)