Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Team Select Problem #270

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 5 additions & 3 deletions scripting/multi1v1.sp
Expand Up @@ -517,8 +517,10 @@ public Action Event_OnPlayerTeam(Event event, const char[] name, bool dontBroadc
if (!g_Enabled)
return Plugin_Continue;

SetEventBroadcast(event, true);
return Plugin_Continue;
// Silent event without blocking it
event.SetBool("silent", true);

return Plugin_Changed;
}

/**
Expand Down Expand Up @@ -1105,7 +1107,7 @@ public void SwitchPlayerTeam(int client, int team) {

g_PluginTeamSwitch[client] = true;
if (team > CS_TEAM_SPECTATOR) {
CS_SwitchTeam(client, team);
ChangeClientTeam(client, team);
CS_UpdateClientModel(client);
} else {
ChangeClientTeam(client, team);
Expand Down