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

9 lines
290 B
Lua

gmpanel.registerAction('ragdoll', function(obj, ply)
local status, players = obj.value or false, gmpanel.buildTargets(obj.players or {})
for _,pl in ipairs(players) do
local state = IsValid(pl.sgRagdoll)
if status ~= state then
ply:Say('~ragdoll ' .. pl:SteamID())
end
end
end)