sourcemm/sample_mm/cvars.cpp
changeset 68 5433659a62ae
child 240 11c567392c11
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/sourcemm/sample_mm/cvars.cpp	Thu May 26 08:32:34 2005 +0000
     1.3 @@ -0,0 +1,27 @@
     1.4 +/* ======== sample_mm ========
     1.5 +* Copyright (C) 2004-2005 Metamod:Source Development Team
     1.6 +* No warranties of any kind
     1.7 +*
     1.8 +* License: zlib/libpng
     1.9 +*
    1.10 +* Author(s): David "BAILOPAN" Anderson
    1.11 +* ============================
    1.12 +*/
    1.13 +
    1.14 +#include "SamplePlugin.h"
    1.15 +#include "cvars.h"
    1.16 +
    1.17 +SampleAccessor g_Accessor;
    1.18 +
    1.19 +ConVar g_MyConVar("sample_version", SAMPLE_VERSION, FCVAR_SPONLY, "Sample Plugin version");
    1.20 +
    1.21 +bool SampleAccessor::RegisterConCommandBase(ConCommandBase *pVar)
    1.22 +{
    1.23 +	//this will work on any type of concmd!
    1.24 +	return META_REGCVAR(pVar);
    1.25 +}
    1.26 +
    1.27 +CON_COMMAND(sample_cmd, "Sample Plugin command")
    1.28 +{
    1.29 +	META_LOG(g_PLAPI, "This sentence is in Spanish when you're not looking.");
    1.30 +}