Hello,
Could you help me please ?
I want to control if a player wear an item with a particular skin.
Is it possible to do something like that ?
if (player.inventory.containerWear(ItemID,ItemSkinID) == True)
{
// do something
}
Solved Control if player wear item skins
Discussion in 'Rust Development' started by HUON, Apr 30, 2016.
-
Untested but should work:
Code:[ChatCommand("skincheck")] private void cmdSkinCheck(BasePlayer player, string command, string[] args) { if (!player.IsAdmin()) return; foreach(Item item in player.inventory.containerWear.itemList) { if (item.skin == 3) { SendReply(player, "Skin ID is: " + item.skin); } } }
-
that work fine ! thanks !