1.1 --- a/plugins/nominations.sp Fri Jul 04 19:04:33 2008 +0000
1.2 +++ b/plugins/nominations.sp Fri Jul 04 22:54:14 2008 +0000
1.3 @@ -184,28 +184,6 @@
1.4
1.5 decl String:mapname[64];
1.6 GetCmdArg(1, mapname, sizeof(mapname));
1.7 -
1.8 - if (FindStringInArray(g_MapList, mapname) == -1)
1.9 - {
1.10 - ReplyToCommand(client, "%t", "Map was not found", mapname);
1.11 - return Plugin_Handled;
1.12 - }
1.13 -
1.14 - new NominateResult:result = NominateMap(mapname, false, client);
1.15 -
1.16 - if (result > Nominate_Replaced)
1.17 - {
1.18 - if (result == Nominate_AlreadyInVote)
1.19 - {
1.20 - ReplyToCommand(client, "%t", "Map Already In Vote", mapname);
1.21 - }
1.22 - else
1.23 - {
1.24 - ReplyToCommand(client, "[SM] %t", "Map Already Nominated");
1.25 - }
1.26 -
1.27 - return Plugin_Handled;
1.28 - }
1.29
1.30 decl String:item[64];
1.31 for (new i = 0; i < GetMenuItemCount(g_MapMenu); i++)
1.32 @@ -213,17 +191,35 @@
1.33 GetMenuItem(g_MapMenu, i, item, sizeof(item));
1.34 if (strcmp(item, mapname) == 0)
1.35 {
1.36 + new NominateResult:result = NominateMap(mapname, false, client);
1.37 +
1.38 + if (result > Nominate_Replaced)
1.39 + {
1.40 + if (result == Nominate_AlreadyInVote)
1.41 + {
1.42 + ReplyToCommand(client, "%t", "Map Already In Vote", mapname);
1.43 + }
1.44 + else
1.45 + {
1.46 + ReplyToCommand(client, "[SM] %t", "Map Already Nominated");
1.47 + }
1.48 +
1.49 + return Plugin_Handled;
1.50 + }
1.51 +
1.52 RemoveMenuItem(g_MapMenu, i);
1.53 - break;
1.54 +
1.55 + decl String:name[64];
1.56 + GetClientName(client, name, sizeof(name));
1.57 +
1.58 + PrintToChatAll("[SM] %t", "Map Nominated", name, mapname);
1.59 +
1.60 + return Plugin_Continue;
1.61 }
1.62 }
1.63
1.64 - decl String:name[64];
1.65 - GetClientName(client, name, sizeof(name));
1.66 -
1.67 - PrintToChatAll("[SM] %t", "Map Nominated", name, mapname);
1.68 -
1.69 - return Plugin_Continue;
1.70 + ReplyToCommand(client, "%t", "Map was not found", mapname);
1.71 + return Plugin_Handled;
1.72 }
1.73
1.74 AttemptNominate(client)