Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.39 KB | None | 0 0
  1.     if (m_hInventory == NULL)
  2.     {
  3.         m_hInventory = (CBaseContainer*)CreateEntityByName("is_container");//new CBaseContainer();
  4.         if (m_hInventory)
  5.         {
  6.             m_hInventory->SetOwner(this);
  7.  
  8.             m_hInventory->Spawn();
  9.             m_hInventory->SetVirtual();
  10.  
  11. #ifdef CLIENT_DLL
  12.             Warning("We get inventory on client\n");
  13. #endif
  14.             #ifdef GAME_DLL
  15.             Warning("We get inventory on server\n");
  16. #endif
  17.         }
  18.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement