From 6302012349d6dc544055bbf448fb7170626510d8 Mon Sep 17 00:00:00 2001 From: Beu Date: Thu, 13 Jul 2023 09:59:26 +0200 Subject: [PATCH] Prevent to send a second chat message when an eliminated player leave the server --- LastManStanding.Script.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/LastManStanding.Script.txt b/LastManStanding.Script.txt index f01e75f..f9f0471 100644 --- a/LastManStanding.Script.txt +++ b/LastManStanding.Script.txt @@ -374,6 +374,7 @@ foreach (Event in PendingEvents) { if (Event.Type == CSmModeEvent::EType::OnPlayerRemoved) { if (Event.User == Null ) continue; if (!AccountIdsOfPlayers.exists(Event.User.WebServicesUserId)) continue; + if (IsEliminated(Event.User, Null)) continue; ThrottleUpdate = True; UpdateCustomRanking(Event.User, True); }