Lock player corpse on death?
when using the code below the inventory IsSetLocked on the respawned player not on the one that dies. any ideas?
    public void lock1(IPlayer player)
        {
            BasePlayer playerbase = player.Object as BasePlayer;

            playerbase.inventory.containerMain.SetLocked(true);
            playerbase.inventory.containerBelt.SetLocked(true);
            playerbase.inventory.containerWear.SetLocked(true);
        }

        object OnPlayerDeath(BasePlayer player, HitInfo info)
        {
            if (permission.UserHasPermission(player.UserIDString, "PoliceInvProt.use"/*"thepolice.cop"*/))
            {
                IPlayer playerp = player.IPlayer as IPlayer;
                lock1(playerp);
            }

            return null;
        }
You want to lock the corpse, rather than the player. 

Use entity.playerSteamID to check the permission.

private void OnEntitySpawned(PlayerCorpse entity)
{
	// if doesnt have permission
		//return;
	
	entity.containers[0].SetLocked(true);
	entity.containers[1].SetLocked(true);
	entity.containers[2].SetLocked(true);
}​
Already sent the plugin to the developer i just deleted all of the items in the invent and the dropped item. Hoever this will be usefull in the future thank you <3
Deving for GTR  I see