File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ namespace AntiRush;
88public partial class AntiRush
99{
1010 public override string ModuleName => "AntiRush" ;
11- public override string ModuleVersion => "2.0.1 " ;
11+ public override string ModuleVersion => "2.0.2 " ;
1212 public override string ModuleAuthor => "https://github.com/oscar-wos/AntiRush" ;
1313 public AntiRushConfig Config { get ; set ; } = new ( ) ;
1414 public Menu . Menu Menu { get ; } = new ( ) ;
Original file line number Diff line number Diff line change 11using AntiRush . Classes ;
22using AntiRush . Extensions ;
33using CounterStrikeSharp . API ;
4+ using CounterStrikeSharp . API . Core ;
45using FixVectorLeak . Extensions ;
56using FixVectorLeak . Structs ;
67
@@ -16,7 +17,7 @@ private void OnTick()
1617 if ( ! _minPlayers || ! _maxPlayers )
1718 return ;
1819
19- foreach ( var player in Utilities . GetPlayers ( ) . Where ( p => p . IsValid ( ) && p . PawnIsAlive ) )
20+ foreach ( var player in Utilities . GetPlayers ( ) . Where ( p => p . IsValid ( ) && ( LifeState_t ) p . PlayerPawn . Value ! . LifeState == LifeState_t . LIFE_ALIVE ) )
2021 {
2122 if ( player . PlayerPawn . Value ? . AbsOrigin == null )
2223 continue ;
@@ -44,6 +45,9 @@ private void OnTick()
4445 if ( ! zone . Teams . Contains ( player . Team ) )
4546 continue ;
4647
48+ if ( ! zone . Entry . ContainsKey ( player ) )
49+ zone . Entry [ player ] = 0 ;
50+
4751 if ( ! isInZone )
4852 {
4953 zone . Entry [ player ] = 0 ;
You can’t perform that action at this time.
0 commit comments