function ulx.identify( calling_ply, target_ply, unidentify )
body = corpse_find( target_ply )
if not body then ULib.tsayError( calling_ply, "This player's corpse does not exist!", true ) return end
if not unidentify then
ulx.fancyLogAdmin( calling_ply, "#A identified #T's body!", target_ply )
corpse_identify( body )
else
ulx.fancyLogAdmin( calling_ply, "#A unidentified #T's body!", target_ply )
CORPSE.SetFound( body, false )
end
end
local identify = ulx.command( CATEGORY_NAME, "ulx identify", ulx.identify, "!identify")
identify:addParam{ type=ULib.cmds.PlayerArg }
identify:addParam{ type=ULib.cmds.BoolArg, invisible=true }
identify:defaultAccess( ULib.ACCESS_SUPERADMIN )
identify:setOpposite( "ulx unidentify", {_, _, true}, "!unidentify", true )
identify:help( "Identifies a target's body." )
function ulx.removebody( calling_ply, target_ply )
body = corpse_find( target_ply )
if not body then ULib.tsayError( calling_ply, "This player's corpse does not exist!", true ) return end
ulx.fancyLogAdmin( calling_ply, "#A removed #T's body!", target_ply )
if string.find( body:GetModel(), "zm_", 6, true ) then
body:Remove()
elseif body.player_ragdoll then
body:Remove()
end
end
local removebody = ulx.command( CATEGORY_NAME, "ulx removebody", ulx.removebody, "!removebody")
removebody:addParam{ type=ULib.cmds.PlayerArg }
removebody:defaultAccess( ULib.ACCESS_SUPERADMIN )
removebody:help( "Removes a target's body." )