Solved Prevent clothing change

Discussion in 'Plugin Requests' started by Scardigne, Sep 25, 2015.

  1. I need a plugin to stop players from removing/swapping the current clothing I have assigned.
     
  2. you can use this code:
    Code:
    // #define DEBUG
    using Oxide.Core;
    using Oxide.Core.Libraries;
    using Oxide.Core.Plugins;
    using System;
    using Rust;namespace Oxide.Plugins
    {
        [Info("RNCC", "raholl", "1.0.0", ResourceId = 4521)]
        public class RNCC : RustPlugin
        {
            void OnPlayerSleepEnded(BasePlayer player)
            {
                player.inventory.containerWear.SetFlag(ItemContainer.Flag.IsLocked, true);
                Puts("Player "+player.displayName+": prevent cloth changes enabled");
            }       
        }
    }
    
    just save it to file RNCC.cs and put to your plugins directory
     
  3. Thanks, but its already been sorted :0)