History
This plugin was originally built on this , but I modified it for my personal needs and added more functionality, making it a completely different plugin now. Description
This plugin adds custom tags based on admin flags and/or based on SteamID's.
It also has support for LevelsRank and it can add the Translation Phrase of the corresponding rank from LR before the tag. (Example: [Silver I]yourcustomtag yourname: message)
You should read the plugin's beggining to understand some key-factors and also if you want to enable the support for LevelsRank
ConVars and Commands
Spoiler
PHP Code:
// This file was auto-generated by SourceMod (v1.11.0.6952)
// ConVars for plugin "advanced-tagmanager.smx"
// Enable or disable the plugin menu
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_advtm_enable "1"
// THIS CVAR WONT EXIST IF YOU DO NOT ENABLE LEVELSRANK SUPPORT IN THE PLUGIN
// Try to fit rank, tag and name before the ':' (only affects clients that have both a rank and a tag)
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_advtm_trim "1"
// And commands
sm_advtm_reload: "Reloads all of the configs and reassigns tags"
sm_advtm_getcookie <name/userid>: "Get the advtm_chattag cookie of a client"
sm_advtm_setcookie <name/userid> <cookie>: "Set the advtm_chattag cookie of a client (dont use unless necessary)"
Changelog
Quote:
10.02.2024 (v1.5_10.02.2024)
* Fixed big error where configs wouldn't load and report false incorrect names.
* Added SCP Redux (updater stripped from .sp file) and Multicolors in the zip.
30.01.2024 (v1.4_29.01.2024)
* Initial release.
Installation
Copy and paste the files into your SourceMod folder. If you want to recompile or try to compile for an older version make sure you have all of the dependencies installed. Example of config files
Spoiler
advancedtagmanager_simpletags.cfg
PHP Code:
"AdvancedTagManager" // DO NOT CHANGE MAIN KEY; THIS FILE MUST ALWAYS EXIST AND HAVE AN ENTRY
{
"entry" // Max entries: 100 (modify in plugin for more); Sort entries descending by flag; Do not change the first column, they are identifiers. Use colors available in Multicolors
{
"tag" "[Custom]" // The tag the player will have in chat (max 24 characters; default none)
"flag" "k" // Flags required for the tag (max 16 characters, default: none), put the higher flags at the top of the list
"tag_color" "{teal}" // Color of the tag (default: "{default}")
"name_color" "{white}" // Color of the name (Default is "{teamcolor}")
"text_color" "{white}" // Color of the message (Default is "{default}")
}
"entry"
{
"tag" "[Lower-Custom]"
"flag" "b"
"tag_color" "{teal}"
"name_color" "{white}"
"text_color" "{white}"
}
}
advancedtagmanager_tags.cfg (optional)
PHP Code:
"AdvancedTagManager" // DO NOT CHANGE MAIN KEY; Optional file
{
"key" // Max entries: 100 (modify in plugin for more); Do not change the first column, they are identifiers. Use colors available in Multicolors
{
"tag" "@SpecialTag" // The tag the player will have in chat (max 24 characters; default none)
"steamid" // What SteamIDs have access to this tag? (Max 24 steamids)
{
"0" "steamid" // example: STEAM_0:1:16
}
"tag_color" "{teal}" // Color of the tag (default: "{default}")
"name_color" "{white}" // Color of the name (Default is "{teamcolor}")
"text_color" "{white}" // Color of the message (Default is "{default}")
}
}
advancedtagmanager_ranks.cfg (optional)
PHP Code:
"AdvancedTagManager" // DO NOT CHANGE MAIN KEY; Optional file
{
"entry" // Max entries: 100 (modify in plugin for more); Do not change the first column, they are identifiers. Use colors available in Multicolors
{
"rank_translation_phrase" "rank_1" // Translation identifier from LevelsRank, must match (max chars = 8, example: rank_999)
"rank_color" "{dimgray}" // Color for the rank, (default: {lightgreen})
"name_color" "{white}" // Color of the name (Default is "{teamcolor}")
"text_color" "{white}" // Color of the message (Default is "{default}")
}
}
UNCOMMENT THE LINE WHERE "LEVELSRANK_ENABLED" IS DEFINED IF YOU HAVE AND WANT TO USE LEVELSRANK!!!
The config file "advancedtagmanager_simpletags.cfg" should be ranked by the flags required and it should always exist with an entry present, otherwise the plugin will fail; the other two files are optional. It provides a fast and easy configuration by just specifying the flags, but if two flags of the tags are the same or anything else that would make the user get the incorrect flags you must use the "advancedtagmanager_tags.cfg" where you specify the STEAMID2 of the user.
"advancedtagmanager_tags.cfg" will always take priority over "advancedtagmanager_simpletags.cfg" because it is a more targeted way of managing the tag.
If the client's name gets trimmed because of the length of the rank or the tag, either modify the rank from the Translation Phrase of LevelsRank or shorten the tag length, or just enable sm_advtm_trim 1 and it will move the name into the message.
The plugin connects to the LevelsRank database by using SQLite.
If someone can test this on CS:GO and reply if it works it would be great.
I would also love to post pictures if I figure out how xd
Tested on Sourcemod 1.10 and 1.11!
L 02/09/2024 - 03:01:24: [SM] Exception reported: [Advanced-TagManager] Error in parsing file advancedtagmenu_tags.cfg.
L 02/09/2024 - 03:01:24: [SM] Blaming: advanced-tagmanager.smx
L 02/09/2024 - 03:01:24: [SM] Call stack trace:
L 02/09/2024 - 03:01:24: [SM] [0] SetFailState
L 02/09/2024 - 03:01:24: [SM] [1] Line 347, C:\steamcmd\steamapps\common\Counter-Strike Source Dedicated Server\cstrike\addons\sourcemod\scripting\advanced-tagmanager.sp::LoadConfiguration
L 02/09/2024 - 03:01:24: [SM] [2] Line 120, C:\steamcmd\steamapps\common\Counter-Strike Source Dedicated Server\cstrike\addons\sourcemod\scripting\advanced-tagmanager.sp::OnPluginStart
L 02/09/2024 - 03:01:24: [SM] Unable to load plugin "advanced-tagmanager.smx": Error detected in plugin startup (see error logs)
I tried changing the file names but it didn't work
I was also confused about the Multi-Color plugin, it doesn't come compiled, I compiled the only .sp file that was inside it (test_compile.sp), it seems to be identical to the example on the Github page, but I didn't understand how it works. I'm not a programmer, I just wanted to set up a casual server to play with friends. Anyway, when I compile the Multi-Color plugin example, what name should I give the plugin? Any name? I'm using LevelsRank
Last edited by EdvaldoFilho; 02-09-2024 at 01:21.
Reason: adding a doubt
L 02/09/2024 - 03:01:24: [SM] Exception reported: [Advanced-TagManager] Error in parsing file advancedtagmenu_tags.cfg.
L 02/09/2024 - 03:01:24: [SM] Blaming: advanced-tagmanager.smx
L 02/09/2024 - 03:01:24: [SM] Call stack trace:
L 02/09/2024 - 03:01:24: [SM] [0] SetFailState
L 02/09/2024 - 03:01:24: [SM] [1] Line 347, C:\steamcmd\steamapps\common\Counter-Strike Source Dedicated Server\cstrike\addons\sourcemod\scripting\advanced-tagmanager.sp::LoadConfiguration
L 02/09/2024 - 03:01:24: [SM] [2] Line 120, C:\steamcmd\steamapps\common\Counter-Strike Source Dedicated Server\cstrike\addons\sourcemod\scripting\advanced-tagmanager.sp::OnPluginStart
L 02/09/2024 - 03:01:24: [SM] Unable to load plugin "advanced-tagmanager.smx": Error detected in plugin startup (see error logs)
I tried changing the file names but it didn't work
I was also confused about the Multi-Color plugin, it doesn't come compiled, I compiled the only .sp file that was inside it (test_compile.sp), it seems to be identical to the example on the Github page, but I didn't understand how it works. I'm not a programmer, I just wanted to set up a casual server to play with friends. Anyway, when I compile the Multi-Color plugin example, what name should I give the plugin? Any name? I'm using LevelsRank
Hello, I fixed the problem in which it would not load the config files and now I have added everything needed for compilation (SCP-Redux and Multicolors) inside of the .zip archive. All you need to do is drag and drop the files from the zip inside of your server if you are running Sourcemod 1.11! If you are running SM 1.10 you also have to recompile the files and move them from "scripting/compiled" to "plugins/" (both advanced-tagmanager.smx and simple-chatprocessor.smx).
Also, if you want LevelsRank support you should: UNCOMMENT THE LINE WHERE "LEVELSRANK_ENABLED" IS DEFINED! On version 1.5_10.02.2024 its on line 14.