Exemple #1
0
        static void RoundEnd(CSGSI.Events.RoundEndEventArgs e)
        {
            SendMessage(e.Winner.ToString() + " has won round " + gsl.CurrentGameState.Map.Round);
            if (e.Winner.ToString() == gsl.CurrentGameState.Player.Team.ToString())
            {
                SendMessage("we unfortunately won this round");
            }
            else
            {
                SendMessage("We lost this round :)!");
            }
            SendMessage("Current score is T : " + gsl.CurrentGameState.Map.TeamT.Score + " CT : " + gsl.CurrentGameState.Map.TeamCT.Score);

            //idk how to handle surrenders lol!!!!!!! im also hungry at this point so this part will be really well done!!
            if (gsl.CurrentGameState.Map.TeamT.Score == 16)
            {
                SendMessage(gsl.CurrentGameState.Player.Team.ToString() == "T" ? "We must have screwed up and won :(!" : "We lost FeelsGoodMan");
                SendMessage("End of game statistics for " + gsl.CurrentGameState.Player.Name + " : \n " + gsl.CurrentGameState.Player.MatchStats.Kills.ToString() + " kills, "
                            + gsl.CurrentGameState.Player.MatchStats.Deaths.ToString() + " deaths, " + gsl.CurrentGameState.Player.MatchStats.MVPs.ToString()
                            + " mvps!");
            }
            if (gsl.CurrentGameState.Map.TeamCT.Score == 16)
            {
                SendMessage(gsl.CurrentGameState.Player.Team.ToString() == "CT" ? "We must have screwed up and won :(!" : "We lost FeelsGoodMan");
                SendMessage("End of game statistics for " + gsl.CurrentGameState.Player.Name + " : \n " + gsl.CurrentGameState.Player.MatchStats.Kills.ToString() + " kills, "
                            + gsl.CurrentGameState.Player.MatchStats.Deaths.ToString() + " deaths, " + gsl.CurrentGameState.Player.MatchStats.MVPs.ToString()
                            + " mvps!");
            }
        }
Exemple #2
0
 public static void RoundEnd(CSGSI.Events.RoundEndEventArgs e)
 {
     var config = ConfigurationManager.Configuration;
 }