mce: adding sm_extends
This commit is contained in:
parent
8da9538f24
commit
ce6d2a1d0b
@ -273,6 +273,9 @@ public void OnPluginStart()
|
||||
// Mapchooser Extended Commands
|
||||
RegAdminCmd("mce_reload_maplist", Command_ReloadMaps, ADMFLAG_CHANGEMAP, "mce_reload_maplist - Reload the Official Maplist file.");
|
||||
|
||||
RegConsoleCmd("sm_extends", Command_ExtendsLeft, "sm_extends - Shows how many extends are left on the current map.");
|
||||
RegConsoleCmd("sm_extendsleft", Command_ExtendsLeft, "sm_extendsleft - Shows how many extends are left on the current map.");
|
||||
|
||||
g_Cvar_Winlimit = FindConVar("mp_winlimit");
|
||||
g_Cvar_Maxrounds = FindConVar("mp_maxrounds");
|
||||
g_Cvar_Fraglimit = FindConVar("mp_fraglimit");
|
||||
@ -614,6 +617,12 @@ public Action Command_ReloadMaps(int client, int args)
|
||||
InitializeOfficialMapList();
|
||||
}
|
||||
|
||||
public Action Command_ExtendsLeft(int client, int args)
|
||||
{
|
||||
CReplyToCommand(client, "[MCE] Available Extends: %d", GetConVarInt(g_Cvar_Extend) - g_Extends);
|
||||
return Plugin_Handled;
|
||||
}
|
||||
|
||||
public void OnMapTimeLeftChanged()
|
||||
{
|
||||
if(GetArraySize(g_MapList))
|
||||
|
Loading…
Reference in New Issue
Block a user