# HG changeset patch # User Matt Woodrow # Date 1215212054 0 # Node ID 186f2f16564c4563c62e30f2051dbdb4590fa306 # Parent 3f1fd7ab3d863726437fe8fef45b22838cb48498 Nominations not blocking current map and excluded maps when used from console. Removed error causing debug stuff from mapchooser. diff -r 3f1fd7ab3d86 -r 186f2f16564c plugins/mapchooser.sp --- a/plugins/mapchooser.sp Fri Jul 04 19:04:33 2008 +0000 +++ b/plugins/mapchooser.sp Fri Jul 04 22:54:14 2008 +0000 @@ -170,11 +170,6 @@ return true; } -public OnMapStart() -{ - Call_Cancel(); -} - public OnConfigsExecuted() { if (ReadMapList(g_MapList, diff -r 3f1fd7ab3d86 -r 186f2f16564c plugins/nominations.sp --- a/plugins/nominations.sp Fri Jul 04 19:04:33 2008 +0000 +++ b/plugins/nominations.sp Fri Jul 04 22:54:14 2008 +0000 @@ -184,28 +184,6 @@ decl String:mapname[64]; GetCmdArg(1, mapname, sizeof(mapname)); - - if (FindStringInArray(g_MapList, mapname) == -1) - { - ReplyToCommand(client, "%t", "Map was not found", mapname); - return Plugin_Handled; - } - - new NominateResult:result = NominateMap(mapname, false, client); - - if (result > Nominate_Replaced) - { - if (result == Nominate_AlreadyInVote) - { - ReplyToCommand(client, "%t", "Map Already In Vote", mapname); - } - else - { - ReplyToCommand(client, "[SM] %t", "Map Already Nominated"); - } - - return Plugin_Handled; - } decl String:item[64]; for (new i = 0; i < GetMenuItemCount(g_MapMenu); i++) @@ -213,17 +191,35 @@ GetMenuItem(g_MapMenu, i, item, sizeof(item)); if (strcmp(item, mapname) == 0) { + new NominateResult:result = NominateMap(mapname, false, client); + + if (result > Nominate_Replaced) + { + if (result == Nominate_AlreadyInVote) + { + ReplyToCommand(client, "%t", "Map Already In Vote", mapname); + } + else + { + ReplyToCommand(client, "[SM] %t", "Map Already Nominated"); + } + + return Plugin_Handled; + } + RemoveMenuItem(g_MapMenu, i); - break; + + decl String:name[64]; + GetClientName(client, name, sizeof(name)); + + PrintToChatAll("[SM] %t", "Map Nominated", name, mapname); + + return Plugin_Continue; } } - decl String:name[64]; - GetClientName(client, name, sizeof(name)); - - PrintToChatAll("[SM] %t", "Map Nominated", name, mapname); - - return Plugin_Continue; + ReplyToCommand(client, "%t", "Map was not found", mapname); + return Plugin_Handled; } AttemptNominate(client)