//--------------------------------------------------------------------------------- // Purpose: called when a client types in a command (only a subset of commands however, not CON_COMMAND's) //--------------------------------------------------------------------------------- PLUGIN_RESULT CNoCheatZPlugin::ClientCommand( edict_t *pEntity, const CCommand &args ) { Msg("ClientCommand(%x, %s)\n", pEntity, args.GetCommandString()); if ( !pEntity || pEntity->IsFree() ) { return PLUGIN_CONTINUE; } NczPlayer* myPlayer = NczPlayerManager::GetInstance()->GetPlayerHandlerByEdict(pEntity)->playerClass; /*ActionID result = HashTable::GetInstance()->ScanCommandString(args.GetCommandString()); if(result > SAFE) { if(result == BAN) { myPlayer->Ban(); } if(result == KICK) { myPlayer->Kick(); } return PLUGIN_STOP; }*/ return PLUGIN_CONTINUE; }