Skip to content

Commit

Permalink
Reset SetListenOverride on Round End to default game value
Browse files Browse the repository at this point in the history
Close #374
  • Loading branch information
Bara committed Oct 18, 2018
1 parent d143d95 commit 140706f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions addons/sourcemod/scripting/ttt/ttt_talk_override.sp
Expand Up @@ -173,6 +173,17 @@ public void Event_PlayerTeam(Event event, const char[] name, bool dontBroadcast)
}
}

public void TTT_OnRoundEnd(int winner, Handle array)
{
LoopValidClients(i)
{
LoopValidClients(j)
{
SetListenOverride(i, j, Listen_Default);
}
}
}

public void TTT_OnClientGetRole(int client, int role)
{
SetListen(client);
Expand Down

0 comments on commit 140706f

Please sign in to comment.