1. I'm trying to fix some plugins for private usage. And faced little problem.
    How can I determine: has Baseplayer player opened inventory interface or not?
     
  2. you would need to bind the inventory key to a custom console command you declared in your plugin, like so:
    Code:
    void OnPlayerInit(BasePlayer player)
    {
        ConsoleSystem.SendClientCommand(player.net.connection, "bind tab inventory.toggle; plugin.command");
    }
    Then your custom console command could keep track of people opening and closing their inventories. One way of keeping track of this would be to just use a Dictionary<ulong, bool> where ulong is the players Steam ID and the bool indicates whether the inventory is open or not.
    There are going to be some edge-cases where the inventory closes even tho the inventory button hasn't been pressed but I'll let you figure that out yourself.
    One downside to all this is that you can't currently know whether a player is actually using the "tab" key to open his inventory. Furthermore you can't unbind the key when the player disconnects, as far as I know.
     
  3. Thank you. That`s little bit sadly (