sourcemm/sample_mm/cvars.cpp
author Scott Ehlert <ds@alliedmods.net>
Mon Feb 19 13:17:07 2007 +0000 (2007-02-19)
changeset 286 4228d058d7cb
parent 241 b5ed7cd47d67
child 294 0d87bc8606f8
permissions -rw-r--r--
Fixed linux build :o
     1 /* ======== sample_mm ========
     2  * Copyright (C) 2004-2006 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 }