zio fork 1.8.2b-zio7: guardian rank tag, ranks on private messages
#rank/guardian shows as G, after the staff ranks so a staff rank wins. css_psay from a player
reads "(PM) [RANK] name: message" ("(PM) name: message" without a rank group); console's is
unchanged. New lang keys sa_psay_template and sa_psay_template_norank.
This commit is contained in:
parent
e2b6670c5a
commit
703893a908
5 changed files with 19 additions and 5 deletions
|
|
@ -144,7 +144,8 @@ internal static class Helper
|
|||
return string.Join(" ", parts);
|
||||
}
|
||||
|
||||
// zio: staff rank groups, highest first, and their chat abbreviations.
|
||||
// zio: rank groups, highest first, and their chat abbreviations. Guardian (VIP) is last, so a
|
||||
// staff rank wins.
|
||||
private static readonly (string Group, string Tag)[] StaffRanks =
|
||||
[
|
||||
("#rank/owner", "O"),
|
||||
|
|
@ -154,9 +155,10 @@ internal static class Helper
|
|||
("#rank/mod", "M"),
|
||||
("#rank/trialmod", "TM"),
|
||||
("#rank/helper", "H"),
|
||||
("#rank/guardian", "G"),
|
||||
];
|
||||
|
||||
// zio: the player's highest staff rank abbreviation, or null if they're in no rank group.
|
||||
// zio: the player's highest rank abbreviation, or null if they're in no rank group.
|
||||
internal static string? GetStaffRankTag(CCSPlayerController player)
|
||||
{
|
||||
var groups = AdminManager.GetPlayerAdminData(new SteamID(player.SteamID))?.Groups;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue