Skip to content

Commit

Permalink
feat: Update ShowRanking function to use URL directly
Browse files Browse the repository at this point in the history
  • Loading branch information
altair-sossai committed Aug 10, 2024
1 parent 3d1ef79 commit b5e2006
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Binary file modified addons/sourcemod/plugins/optional/l4d2_ranking.smx
Binary file not shown.
5 changes: 1 addition & 4 deletions addons/sourcemod/scripting/l4d2_ranking.sp
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,7 @@ void ShowRanking(int client)
char url[100];
GetConVarString(hUrl, url, sizeof(url));

char path[128];
FormatEx(path, sizeof(path), "%s/ranking", url);

ShowMOTDPanel(client, "L4D2 | Players Ranking", path, MOTDPANEL_TYPE_URL);
ShowMOTDPanel(client, "L4D2 | Players Ranking", url, MOTDPANEL_TYPE_URL);
}

bool IsNewGame()
Expand Down

0 comments on commit b5e2006

Please sign in to comment.