Open TitaniumLithium opened 3 weeks ago
Not sure this could terminate round. But it did nothing except console output.
var csEntities = Utilities.FindAllEntitiesByDesignerName<CBaseEntity>("cs_").ToArray(); foreach (var entity in csEntities.Where(x => x.DesignerName == "cs_gamerules")) { var gameRules = entity.As<CCSGameRules>(); gameRules.TerminateRound(0,RoundEndReason.CTsWin); gameRules.CTTimeOutActive = true; Console.WriteLine("CTWIN"); }
Yeah, it's not working. My two plugins got broken because of it :(
gRules.TerminateRound(5.0f, RoundEndReason.CTsWin);
Not sure this could terminate round. But it did nothing except console output.