I need a plugin to stop players from removing/swapping the current clothing I have assigned.
Solved Prevent clothing change
Discussion in 'Plugin Requests' started by Scardigne, Sep 25, 2015.
-
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"); } } }
-