diff --git a/plugins/mapchooser.sp b/plugins/mapchooser.sp index 9f7b72f0..8590fcd0 100644 --- a/plugins/mapchooser.sp +++ b/plugins/mapchooser.sp @@ -469,8 +469,19 @@ public Event_PlayerDeath(Handle:event, const String:name[], bool:dontBroadcast) return; } + if (g_MapVoteCompleted) + { + return; + } + new fragger = GetClientOfUserId(GetEventInt(event, "attacker")); - if (fragger && GetClientFrags(fragger) >= (GetConVarInt(g_Cvar_Fraglimit) - GetConVarInt(g_Cvar_StartFrags))) + + if (!fragger) + { + return; + } + + if (GetClientFrags(fragger) >= (GetConVarInt(g_Cvar_Fraglimit) - GetConVarInt(g_Cvar_StartFrags))) { InitiateVote(MapChange_MapEnd, INVALID_HANDLE); }