o Added a client command for cl_rate to prevent access to the valve command.

git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@550 67975925-1194-0748-b3d5-c16f83f1a3a1
This commit is contained in:
puzl 2006-07-01 14:41:27 +00:00
parent 3849045aec
commit 8fc74ffae9

View file

@ -167,6 +167,8 @@ int __MsgFunc_TeamInfo(const char *pszName, int iSize, void *pbuf)
void __CmdFunc_SpecialDummy(void) {}
void __CmdFunc_ClRateDummy(void) { }
// This is called every time the DLL is loaded
void CHud :: Init( void )
{
@ -178,6 +180,7 @@ void CHud :: Init( void )
HOOK_COMMAND( "special", SpecialDummy);
HOOK_COMMAND( "_special", SpecialDummy); //prevent abuse
HOOK_COMMAND( "cl_rate", ClRateDummy);
HOOK_MESSAGE( TeamNames );
HOOK_MESSAGE( MOTD );