Permalink
Browse files

#252

  • Loading branch information...
Bara committed Dec 6, 2017
1 parent 5246985 commit eb2ff2b6154f7488174bcfa6e2aba61c436af061
Showing with 8 additions and 0 deletions.
  1. +8 −0 addons/sourcemod/scripting/ttt/ttt.sp
@@ -96,6 +96,9 @@ public void OnPluginStart()
HookEvent("player_spawn", Event_PlayerSpawn);
HookEvent("player_changename", Event_ChangeName);
HookEvent("player_death", Event_PlayerDeath);
HookEvent("cs_win_panel_round", Event_WinPanel);
HookEvent("cs_win_panel_match", Event_WinPanel);
HookEvent("cs_match_end_restart", Event_WinPanel);
g_hGraceTime = FindConVar("mp_join_grace_time");
@@ -690,6 +693,11 @@ public Action Event_RoundEndPre(Event event, const char[] name, bool dontBroadca
}
}
public Action Event_WinPanel(Event event, const char[] name, bool dontBroadcast)
{
g_bRoundEnding = true;
}
public Action Timer_SelectionCountdown(Handle hTimer)
{
int timeLeft = RoundToFloor(g_fRealRoundStart - GetGameTime());

0 comments on commit eb2ff2b

Please sign in to comment.