just spectate the bot 4head (#969)

This commit is contained in:
Joe 2020-10-15 15:20:46 +00:00 committed by GitHub
parent 8a36caaa14
commit 50805a5d8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 13 deletions

View File

@ -2422,16 +2422,9 @@ public Action Command_Replay(int client, int args)
{ {
ChangeClientTeam(client, CS_TEAM_SPECTATOR); ChangeClientTeam(client, CS_TEAM_SPECTATOR);
} }
}
SetEntPropEnt(client, Prop_Send, "m_hObserverTarget", gA_CentralCache.iClient); SetEntPropEnt(client, Prop_Send, "m_hObserverTarget", gA_CentralCache.iClient);
}
else if(GetSpectatorTarget(client) != gA_CentralCache.iClient)
{
Shavit_PrintToChat(client, "%T", "CentralReplaySpectator", client, gS_ChatStrings.sWarning, gS_ChatStrings.sText, gS_ChatStrings.sVariable, gS_ChatStrings.sText);
return Plugin_Handled;
}
if(CanStopCentral(client)) if(CanStopCentral(client))
{ {

View File

@ -38,11 +38,6 @@
"en" "Could not delete replay for {1}{2}{3}." "en" "Could not delete replay for {1}{2}{3}."
} }
// ---------- Central Replay Menu ---------- // // ---------- Central Replay Menu ---------- //
"CentralReplaySpectator"
{
"#format" "{1:s},{2:s},{3:s},{4:s}"
"en" "You have to {1}spectate{2} the {3}central bot{4} to use this feature."
}
"CentralReplayTitle" "CentralReplayTitle"
{ {
"en" "Select a replay style to play:" "en" "Select a replay style to play:"