Prevent to send a second chat message when an eliminated player leave the server
This commit is contained in:
parent
2741de908f
commit
6302012349
@ -374,6 +374,7 @@ foreach (Event in PendingEvents) {
|
|||||||
if (Event.Type == CSmModeEvent::EType::OnPlayerRemoved) {
|
if (Event.Type == CSmModeEvent::EType::OnPlayerRemoved) {
|
||||||
if (Event.User == Null ) continue;
|
if (Event.User == Null ) continue;
|
||||||
if (!AccountIdsOfPlayers.exists(Event.User.WebServicesUserId)) continue;
|
if (!AccountIdsOfPlayers.exists(Event.User.WebServicesUserId)) continue;
|
||||||
|
if (IsEliminated(Event.User, Null)) continue;
|
||||||
ThrottleUpdate = True;
|
ThrottleUpdate = True;
|
||||||
UpdateCustomRanking(Event.User, True);
|
UpdateCustomRanking(Event.User, True);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user