Just bash someone in the head with a brick and give them a blanket, time knocked out could depend on damage of the hit or weapon used?
In a more formal way, you can knock out another player or npc by hitting them in the head with a blunt object and they just ragdoll, you can drag them around or just kill them. (The players screen could be blurred with muffled sounds)