diff --git a/plugins/include/helpers.inc b/plugins/include/helpers.inc index 355ceacc..9376fa7f 100644 --- a/plugins/include/helpers.inc +++ b/plugins/include/helpers.inc @@ -36,31 +36,18 @@ #define _helpers_included /** - * Formats a user's info as log text. This is usually not needed because - * %L can be used to auto-format client information into a string. + * This function is deprecated. Use the %L format specifier instead. + * + * Formats a user's info as log text. * * @param client Client index. * @param buffer Buffer for text. * @param maxlength Maximum length of text. */ +#pragma deprecated Use the %L format specifier instead. stock void FormatUserLogText(int client, char[] buffer, int maxlength) { - char auth[32]; - char name[MAX_NAME_LENGTH]; - - int userid = GetClientUserId(client); - if (!GetClientAuthId(client, AuthId_Engine, auth, sizeof(auth))) - { - strcopy(auth, sizeof(auth), "UNKNOWN"); - } - if (!GetClientName(client, name, sizeof(name))) - { - strcopy(name, sizeof(name), "UNKNOWN"); - } - - /** Currently, no team stuff ... */ - - Format(buffer, maxlength, "\"%s<%d><%s><>\"", name, userid, auth); + FormatEx(buffer, maxlength, "\"%L\"", client); } /**