diff --git a/plugins/mapchooser.sp b/plugins/mapchooser.sp index ed97a930..cc769b49 100644 --- a/plugins/mapchooser.sp +++ b/plugins/mapchooser.sp @@ -123,7 +123,7 @@ public OnPluginStart() g_Cvar_NoVoteMode = CreateConVar("sm_mapvote_novote", "1", "Specifies whether or not MapChooser should pick a map if no votes are received.", _, true, 0.0, true, 1.0); g_Cvar_Extend = CreateConVar("sm_mapvote_extend", "0", "Number of extensions allowed each map.", _, true, 0.0); g_Cvar_DontChange = CreateConVar("sm_mapvote_dontchange", "1", "Specifies if a 'Don't Change' option should be added to early votes", _, true, 0.0); - g_Cvar_VoteDuration = CreateConVar("sm_mapvote_voteduration", "20", "Specifies how long the mapvote should be available for.", _, true, 5.0, true, 25.0); + g_Cvar_VoteDuration = CreateConVar("sm_mapvote_voteduration", "20", "Specifies how long the mapvote should be available for.", _, true, 5.0); RegAdminCmd("sm_mapvote", Command_Mapvote, ADMFLAG_CHANGEMAP, "sm_mapvote - Forces MapChooser to attempt to run a map vote now."); RegAdminCmd("sm_setnextmap", Command_SetNextmap, ADMFLAG_CHANGEMAP, "sm_setnextmap "); @@ -355,13 +355,14 @@ public Event_TeamPlayWinPanel(Handle:event, const String:name[], bool:dontBroadc if(GetEventInt(event, "round_complete") == 1 || StrEqual(name, "arena_win_panel")) { g_TotalRounds++; - CheckMaxRounds(g_TotalRounds); if (!GetArraySize(g_MapList) || g_HasVoteStarted || g_MapVoteCompleted || !GetConVarBool(g_Cvar_EndOfMapVote)) { return; } + CheckMaxRounds(g_TotalRounds); + switch(GetEventInt(event, "winning_team")) { case 3: