sourcemm/sample_mm/cvars.cpp
author Scott Ehlert <ds@alliedmods.net>
Thu Jul 20 11:31:41 2006 +0000 (2006-07-20)
changeset 223 f44cad5df4e8
parent 68 5433659a62ae
child 240 11c567392c11
permissions -rw-r--r--
I shouldn't have touched this again in the first place
     1 /* ======== sample_mm ========
     2 * Copyright (C) 2004-2005 Metamod:Source Development Team
     3 * No warranties of any kind
     4 *
     5 * License: zlib/libpng
     6 *
     7 * Author(s): David "BAILOPAN" Anderson
     8 * ============================
     9 */
    10 
    11 #include "SamplePlugin.h"
    12 #include "cvars.h"
    13 
    14 SampleAccessor g_Accessor;
    15 
    16 ConVar g_MyConVar("sample_version", SAMPLE_VERSION, FCVAR_SPONLY, "Sample Plugin version");
    17 
    18 bool SampleAccessor::RegisterConCommandBase(ConCommandBase *pVar)
    19 {
    20 	//this will work on any type of concmd!
    21 	return META_REGCVAR(pVar);
    22 }
    23 
    24 CON_COMMAND(sample_cmd, "Sample Plugin command")
    25 {
    26 	META_LOG(g_PLAPI, "This sentence is in Spanish when you're not looking.");
    27 }