Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace Oxide.Plugins
- {
- [Info("Title of Plugin", "Your Name", 0.1, ResourceId = 714)]
- [Description("This is what the plugin does")]
- public class Test : RustPlugin
- {
- void OnPlayerRespawned(BasePlayer player)
- {
- var item = ItemManager.CreateByName("hoodie", 1);
- if (playerTeam.contains(player.userID))
- {
- if (playerTeam[player.userID] == Team.RED)
- {
- item.skin = 14178;
- }
- else
- {
- item.skin = 14178;
- }
- }
- player.inventory.GiveItem(item, player.inventory.containerWear);
- player.inventory.containerWear.SetFlag(ItemContainer.Flag.IsLocked, true);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment