dobrograd-13-06-2022/garrysmod/addons/feature-gmpanel/lua/gmpanel/actions/commands/server.lua
Jonny_Bro (Nikita) e4d5311906 first commit
2023-11-16 15:01:19 +05:00

7 lines
259 B
Lua

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)