C#:
namespace Oxide.Plugins
{
[Info("DeathBackpack", "CryPlugins", "0.0.1")]
[Description("Turning corpses into a backpack")]
public class DeathBackpack : RustPlugin
{
private void OnEntitySpawned(BaseNetworkable entity)
{
var corpse = entity as LootableCorpse;
if (corpse == null || entity is NPCPlayer) return;
timer.Once(2f, (600) =>
{
corpse.Kill(600);
corpse.DropItems(600);
});
}
}
}