Skip to content

Commit

Permalink
fix(tdstatus): correct target (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rushaway authored Apr 26, 2024
1 parent 5bf9023 commit 21c18fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions addons/sourcemod/scripting/TopDefenders.sp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public Plugin myinfo =
name = "Top Defenders",
author = "Neon & zaCade & maxime1907 & Cloud Strife & .Rushaway",
description = "Show Top Defenders after each round",
version = "1.9.8"
version = "1.9.9"
};

public APLRes AskPluginLoad2(Handle myself, bool late, char[] error, int err_max)
Expand Down Expand Up @@ -218,14 +218,14 @@ public Action OnToggleStatus(int client, int args)
int rank = 0;
int target = -1;

if (args < 1)
target = client;
else
if (args != 0)
{
char sArg[MAX_NAME_LENGTH];
GetCmdArg(1, sArg, sizeof(sArg));
target = FindTarget(client, sArg, false, true);
}
else
target = client;

SetGlobalTransTarget(client);

Expand Down

0 comments on commit 21c18fa

Please sign in to comment.