Added amb1665 and amb1381 - Added other map limits to 'timeleft' and handling of timeleft/nextmap console commands.

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402195
This commit is contained in:
Matt Woodrow
2008-05-26 01:09:10 +00:00
parent c9b320d645
commit bff2b0a95d
3 changed files with 200 additions and 41 deletions
+4 -7
View File
@@ -61,10 +61,7 @@ public OnPluginStart()
RegConsoleCmd("say", Command_Say);
RegConsoleCmd("say_team", Command_Say);
if (GetCommandFlags("nextmap") == INVALID_FCVAR_FLAGS)
{
RegServerCmd("nextmap", Command_Nextmap);
}
RegConsoleCmd("nextmap", Command_Nextmap);
RegAdminCmd("sm_setnextmap", Command_SetNextmap, ADMFLAG_CHANGEMAP, "sm_setnextmap <map>");
RegConsoleCmd("listmaps", Command_List);
@@ -113,7 +110,7 @@ public Action:Command_Say(client, args)
decl String:map[32];
GetNextMap(map, sizeof(map));
PrintToChat(client, "%t", "Next Map", map);
PrintToChat(client, "[SM] %t", "Next Map", map);
}
return Plugin_Continue;
@@ -159,13 +156,13 @@ public Action:Command_List(client, args)
return Plugin_Handled;
}
public Action:Command_Nextmap(args)
public Action:Command_Nextmap(client, args)
{
decl String:map[64];
GetNextMap(map, sizeof(map));
ReplyToCommand(0, "%t", "Next Map", map);
ReplyToCommand(client, "[SM] %t", "Next Map", map);
return Plugin_Handled;
}