mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-09 03:18:25 +00:00
fix team select menu needing to be closed twice
This commit is contained in:
parent
84a4f10f22
commit
6386577ef4
@ -3156,9 +3156,16 @@ void RemoveRadar(any data)
|
|||||||
public Action Player_Notifications(Event event, const char[] name, bool dontBroadcast)
|
public Action Player_Notifications(Event event, const char[] name, bool dontBroadcast)
|
||||||
{
|
{
|
||||||
if(gCV_HideTeamChanges.BoolValue)
|
if(gCV_HideTeamChanges.BoolValue)
|
||||||
|
{
|
||||||
|
if (StrEqual(name, "player_death"))
|
||||||
{
|
{
|
||||||
event.BroadcastDisabled = true;
|
event.BroadcastDisabled = true;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
event.SetBool("silent", true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
int client = GetClientOfUserId(event.GetInt("userid"));
|
int client = GetClientOfUserId(event.GetInt("userid"));
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user