add some chat messages

This commit is contained in:
Beu 2022-05-13 21:18:49 +02:00
parent bbc473a329
commit 5d4dfcb4d9

View File

@ -6,7 +6,7 @@
#Extends "Libs/Nadeo/TMNext/TrackMania/Modes/TMNextBase.Script.txt" #Extends "Libs/Nadeo/TMNext/TrackMania/Modes/TMNextBase.Script.txt"
#Const CompatibleMapTypes "TrackMania\\TM_Race,TM_Race" #Const CompatibleMapTypes "TrackMania\\TM_Race,TM_Race"
#Const Version "2022-05-11" #Const Version "2022-05-13"
#Const ScriptName "Modes/TM2020-Gamemodes/TM_LapsKnockout.Script.txt" #Const ScriptName "Modes/TM2020-Gamemodes/TM_LapsKnockout.Script.txt"
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ //
@ -234,6 +234,12 @@ foreach (LapNb => State in MatchState.sortkeyreverse()) {
foreach (Player in Players) { foreach (Player in Players) {
Player.Dossard_Color = <1., 1., 1.>; Player.Dossard_Color = <1., 1., 1.>;
} }
if (Last_NbLapsWithoutKO == 1) {
UIManager.UIAll.SendChat(Last_NbLapsWithoutKO ^ " lap without eliminations");
} else if (Last_NbLapsWithoutKO > 1){
UIManager.UIAll.SendChat(Last_NbLapsWithoutKO ^ " laps without eliminations");
}
*** ***
***Match_PlayLoop*** ***Match_PlayLoop***
@ -273,6 +279,7 @@ foreach (Event in RacePendingEvents) {
} }
if (Event.IsEndRace) { if (Event.IsEndRace) {
UIManager.UIAll.SendChat("Player $<$ff6" ^ Event.Player.User.Name ^ "$> $<$6f6wins the match!$>");
MB_StopMatch(); MB_StopMatch();
} }