Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.1 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // This class allows the game dll to control what functions 3rd party plugins can
  6. // call on clients.
  7. //
  8. //=============================================================================//
  9. #include "cbase.h"
  10. #include "eiface.h"
  11. // NOTE: This has to be the last file included!
  12. #include "tier0/memdbgon.h"
  13. //-----------------------------------------------------------------------------
  14. // Purpose: An implementation
  15. //-----------------------------------------------------------------------------
  16. class CPluginHelpersCheck : public IPluginHelpersCheck
  17. {
  18. public:
  19. virtual bool CreateMessage( const char *plugin, edict_t *pEntity, DIALOG_TYPE type, KeyValues *data );
  20. };
  21. CPluginHelpersCheck s_PluginCheck;
  22. EXPOSE_SINGLE_INTERFACE_GLOBALVAR(CPluginHelpersCheck, IPluginHelpersCheck, INTERFACEVERSION_PLUGINHELPERSCHECK, s_PluginCheck);
  23. bool CPluginHelpersCheck::CreateMessage( const char *plugin, edict_t *pEntity, DIALOG_TYPE type, KeyValues *data )
  24. {
  25. // return false here to disallow a plugin from running this command on this client
  26. return true;
  27. }