Koenrad

Untitled

Sep 25th, 2015
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.68 KB | None | 0 0
  1. namespace Oxide.Plugins
  2. {
  3.     [Info("Title of Plugin", "Your Name", 0.1, ResourceId = 714)]
  4.     [Description("This is what the plugin does")]
  5.     public class Test : RustPlugin
  6.     {
  7.         void OnPlayerRespawned(BasePlayer player)
  8.         {
  9.             var item = ItemManager.CreateByName("hoodie", 1);
  10.             if (playerTeam.contains(player.userID))
  11.             {
  12.                 if (playerTeam[player.userID] == Team.RED)
  13.                 {
  14.                     item.skin = 14178;
  15.                 }
  16.                 else
  17.                 {
  18.                     item.skin = 14178;
  19.                 }
  20.             }
  21.             player.inventory.GiveItem(item, player.inventory.containerWear);
  22.             player.inventory.containerWear.SetFlag(ItemContainer.Flag.IsLocked, true);
  23.         }
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment