sourcemm/sample_mm/cvars.cpp
author David Anderson <dvander@alliedmods.net>
Tue Sep 18 20:03:47 2007 +0000 (2007-09-18)
branchsourcemm-1.6.0
changeset 347 e82968c21606
permissions -rw-r--r--
branched 1.4.2 to 1.6.0
     1 /* ======== sample_mm ========
     2  * Copyright (C) 2004-2007 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 }