Tested and ready for release

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401186
This commit is contained in:
Michael McKoy 2007-07-26 23:56:55 +00:00
parent efe5f0d2fe
commit 7c469fb517

View File

@ -74,7 +74,7 @@ public OnPluginStart()
HookUserMessage(g_VGUIMenu, UserMsg_VGUIMenu); HookUserMessage(g_VGUIMenu, UserMsg_VGUIMenu);
HookConVarChange(g_Cvar_Mapcycle, ConVarChange_Mapcyclefile); HookConVarChange(g_Cvar_Mapcycle, ConVarChange_Mapcyclefile);
g_Cvar_Nextmap = CreateConVar("sm_nextmap", "", "Sets the Next Map", FCVAR_PLUGIN|FCVAR_SPONLY|FCVAR_UNLOGGED|FCVAR_DONTRECORD|FCVAR_REPLICATED|FCVAR_NOTIFY); g_Cvar_Nextmap = CreateConVar("sm_nextmap", "", "Sets the Next Map", FCVAR_NOTIFY);
RegConsoleCmd("say", Command_Say); RegConsoleCmd("say", Command_Say);
RegConsoleCmd("say_team", Command_Say); RegConsoleCmd("say_team", Command_Say);
@ -90,7 +90,6 @@ public OnPluginStart()
} }
#endif #endif
RegConsoleCmd("nextmap", Command_Nextmap);
RegConsoleCmd("listmaps", Command_List); RegConsoleCmd("listmaps", Command_List);
/* Set to the current map so OnMapStart() will know what to do */ /* Set to the current map so OnMapStart() will know what to do */
@ -151,18 +150,11 @@ public Action:Command_Say(client, args)
if (strcmp(message, "nextmap", false) == 0) if (strcmp(message, "nextmap", false) == 0)
{ {
return Command_Nextmap(client, args);
}
return Plugin_Continue;
}
public Action:Command_Nextmap(client, args)
{
decl String:map[32]; decl String:map[32];
GetConVarString(g_Cvar_Nextmap, map, sizeof(map)); GetConVarString(g_Cvar_Nextmap, map, sizeof(map));
PrintToChatAll("%t", "Next Map", map); PrintToChatAll("%t", "Next Map", map);
}
return Plugin_Continue; return Plugin_Continue;
} }