1.1 --- a/plugins/nextmap.sp Sun Jul 27 06:29:58 2008 +0000
1.2 +++ b/plugins/nextmap.sp Mon Jul 28 07:47:28 2008 +0000
1.3 @@ -59,7 +59,6 @@
1.4
1.5 g_MapList = CreateArray(32);
1.6
1.7 - RegAdminCmd("sm_setnextmap", Command_SetNextmap, ADMFLAG_CHANGEMAP, "sm_setnextmap <map>");
1.8 RegAdminCmd("sm_maphistory", Command_MapHistory, ADMFLAG_CHANGEMAP, "Shows the most recent maps played");
1.9 RegConsoleCmd("listmaps", Command_List);
1.10
1.11 @@ -89,31 +88,6 @@
1.12 }
1.13 }
1.14
1.15 -public Action:Command_SetNextmap(client, args)
1.16 -{
1.17 - if (args < 1)
1.18 - {
1.19 - ReplyToCommand(client, "[SM] Usage: sm_setnextmap <map>");
1.20 - return Plugin_Handled;
1.21 - }
1.22 -
1.23 - decl String:map[64];
1.24 - GetCmdArg(1, map, sizeof(map));
1.25 -
1.26 - if (!IsMapValid(map))
1.27 - {
1.28 - ReplyToCommand(client, "[SM] %t", "Map was not found", map);
1.29 - return Plugin_Handled;
1.30 - }
1.31 -
1.32 - ShowActivity(client, "%t", "Changed Next Map", map);
1.33 - LogMessage("\"%L\" changed nextmap to \"%s\"", client, map);
1.34 -
1.35 - SetNextMap(map);
1.36 -
1.37 - return Plugin_Handled;
1.38 -}
1.39 -
1.40 public Action:Command_List(client, args)
1.41 {
1.42 PrintToConsole(client, "Map Cycle:");
1.43 @@ -214,18 +188,18 @@
1.44
1.45 if (days > 0)
1.46 {
1.47 - Format(buffer, maxlen, "%id %ih %im", days, hours, (seconds >= 30) ? minutes+1 : minutes);
1.48 + return Format(buffer, maxlen, "%id %ih %im", days, hours, (seconds >= 30) ? minutes+1 : minutes);
1.49 }
1.50 else if (hours > 0)
1.51 {
1.52 - Format(buffer, maxlen, "%ih %im", hours, (seconds >= 30) ? minutes+1 : minutes);
1.53 + return Format(buffer, maxlen, "%ih %im", hours, (seconds >= 30) ? minutes+1 : minutes);
1.54 }
1.55 else if (minutes > 0)
1.56 {
1.57 - Format(buffer, maxlen, "%im", (seconds >= 30) ? minutes+1 : minutes);
1.58 + return Format(buffer, maxlen, "%im", (seconds >= 30) ? minutes+1 : minutes);
1.59 }
1.60 else
1.61 {
1.62 - Format(buffer, maxlen, "%is", seconds);
1.63 + return Format(buffer, maxlen, "%is", seconds);
1.64 }
1.65 -}
1.66 \ No newline at end of file
1.67 +}