Hi Guys, i want to make a special end map, before all will be ended then will come something with string with "Lose" or "Win" (for the team who win/lose) and "Draw".
Here is my tried script:
So what now happens:Code:endMap() { game["state"] = "intermission"; level notify("intermission"); alliedscore = getTeamScore("allies"); axisscore = getTeamScore("axis"); self freezeControls(true); self playsound("end"); if(alliedscore == axisscore) // DRAW { script......... } else if(alliedscore > axisscore) { if(self.pers["team"] == "allies") // Allies WIN! { script........... } else if(self.pers["team"] == "axis") // Axis LOSE! { script............. } } wait(13); /////////// NOW ALL WILL BE ENDED HOW LIKE DEFAULT if(alliedscore == axisscore) { winningteam = "tie"; losingteam = "tie"; text = "MP_THE_GAME_IS_A_TIE"; } else if(alliedscore > axisscore) { winningteam = "allies"; losingteam = "axis"; text = &"MP_ALLIES_WIN"; } else { ......................................................
If map ends, then i will be not freeze (should be all) and there will not come WIN or Lose or Draw for teams.
Why and how i can fix it that it comes to teams the win or lose for players?
But after 13 secounds works that it ends.



Reply With Quote