dvander@910: /**
ds@1330: * vim: set ts=4 :
ds@1330: * =============================================================================
ds@1330: * SourceMod Basic Commands Plugin
ds@913: * Implements basic admin commands.
ds@1330: *
ds@1330: * SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved.
ds@1330: * =============================================================================
dvander@910: *
ds@1330: * This program is free software; you can redistribute it and/or modify it under
ds@1330: * the terms of the GNU General Public License, version 3.0, as published by the
ds@1330: * Free Software Foundation.
ds@1330: *
ds@1330: * This program is distributed in the hope that it will be useful, but WITHOUT
ds@1330: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
ds@1330: * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
ds@1330: * details.
dvander@910: *
ds@1330: * You should have received a copy of the GNU General Public License along with
ds@1330: * this program. If not, see .
teame06@1211: *
ds@1330: * As a special exception, AlliedModders LLC gives you permission to link the
dvander@1624: * code of this program (as well as its derivative 1works) to "Half-Life 2," the
ds@1330: * "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
ds@1330: * by the Valve Corporation. You must obey the GNU General Public License in
ds@1330: * all respects for all other code used. Additionally, AlliedModders LLC grants
ds@1330: * this exception to all derivative works. AlliedModders LLC defines further
ds@1330: * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
ds@1330: * or .
ds@913: *
ds@913: * Version: $Id$
dvander@910: */
dvander@910:
ds@989: #pragma semicolon 1
dvander@910:
ds@989: #include
dvander@1510: #undef REQUIRE_PLUGIN
dvander@1510: #include
ds@913:
teame06@1211: public Plugin:myinfo =
dvander@910: {
dvander@910: name = "Basic Commands",
dvander@910: author = "AlliedModders LLC",
dvander@910: description = "Basic Admin Commands",
dvander@910: version = SOURCEMOD_VERSION,
dvander@910: url = "http://www.sourcemod.net/"
dvander@910: };
dvander@910:
dvander@1510: new Handle:hTopMenu = INVALID_HANDLE;
dvander@1510:
pred@1536: new Handle:g_MapList;
pred@1536:
dvander@1510: #include "basecommands/kick.sp"
dvander@1518: #include "basecommands/reloadadmins.sp"
dvander@1523: #include "basecommands/cancelvote.sp"
pred@1536: #include "basecommands/who.sp"
pred@1536: #include "basecommands/map.sp"
pred@1536: #include "basecommands/execcfg.sp"
dvander@1510:
dvander@910: public OnPluginStart()
dvander@910: {
dvander@1027: LoadTranslations("common.phrases");
dvander@1521: LoadTranslations("plugin.basecommands");
teame06@1211:
dvander@910: RegAdminCmd("sm_kick", Command_Kick, ADMFLAG_KICK, "sm_kick <#userid|name> [reason]");
dvander@917: RegAdminCmd("sm_map", Command_Map, ADMFLAG_CHANGEMAP, "sm_map