-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ public partial class TeamBalancer : BasePlugin | |
public override string ModuleName => "Team Balancer"; | ||
public override string ModuleAuthor => "Jon-Mailes Graeffe <[email protected]> / Kalle <[email protected]>"; | ||
|
||
private bool _halfTime = true; | ||
private bool _halfTime = false; | ||
|
||
public override void Load(bool hotReload) | ||
{ | ||
|
@@ -97,9 +97,10 @@ public HookResult OnPlayerTeam(EventPlayerTeam @event, GameEventInfo info) | |
|
||
public HookResult OnStartHalftime(EventStartHalftime @event, GameEventInfo info) | ||
{ | ||
_halfTime = false; | ||
AddTimer(5f, ()=>{ | ||
_halfTime = true; | ||
_halfTime = true; | ||
AddTimer(5f, () => | ||
{ | ||
_halfTime = false; | ||
}); | ||
return HookResult.Continue; | ||
} | ||
|