Players can spawn ragdolls

Players can spawn ragdolls on my server and I have no idea how to disable it. There isn’t such an option in FPP and I didn’t find solution on the internet. Please help.

Thanks in advance.

sbox_maxragdolls 0 (server convar)

Thanks, but now nobody can spawn them. I need something so only admins can spawn ragdolls.

You can check here and remove it if the spawning player is not an admin:

Or better yet, use a hook actually designed for this…

Doesn’t work, non-admin players can still spawn ragdolls.