Please note that the configuration file from the old version is not supported from the new one. You will have to replace the new file uploaded in the archive if you want the plugin to work properly.
You can now add chat colors by name/IP/SteamID, instead of flag(s) only.
The sections for prefix by flag and prefix by name/IP/SteamID have been combined.
The symbols surrounding the placeholders have been changed from % to $ because if you for example wrote %naem% instead of %name%, the plugin wouldn't work. Now there's no such problem because $naem$ can show in the chat instead of the plugin failing to show the entire message and throw an error.
Added a section for adding a custom name by name/IP/SteamID. This means you can add a name with multiple colors or a completely customized name.
The FORMAT_SAY and FORMAT_SAY_TEAM settings have been completely removed and a new [Format Definitions] section is added on their place. Here you can create an unlimited amouont of chat formats that you can set on admin flag(s) or name/IP/SteamID in the other new section - [User Formats].
With the change made above, it's now possible to have different chat styles for each player.
Added settings for logging the chat messages, following the formats defined by you.
Added a setting for playing a sound when writing a message in chat. You can set a different sound for say and say_team messages.
The ALL_CHAT setting can now be set to 2 which will allow players to see all chats, including the team chats.
When a mistake is made in the .ini file, the plugin will throw an error in the file logs/chatmanager_errors.log.
The prefix, chat color and other information are now automatically updated when the admin flags are changed by another plugin or command.
Added the command cm_reload that allows administrators to immediately reload the configuration file.
Added the cm_reload_config_file() native that does the same thing mentioned above.
Aside from adding extras by "flag/name/ip/steam", you can now add them by "anyflag" (adds the extra if the player has any of the specified flags) and "noprefix" (adds the extra if the player doesn't have a prefix set).
Removed the limitation that doesn't allow you to set a custom name on a specific flag.
The crx_chatmanager_toggle plugin is fully rewritten. The commands /prefix and /colorchat have been removed and replaced with the command /cm that opens a menu with settings:
Hello @OciXCrom
This looks like a great plugin,I want it because of the prefixs and the Admin see all feature (the one from OciXCrom's Admin Chat didn't work for me !!)
I think I installed everything right but it didn't work,in fact The whole server chat completely disappeared except admin chat from your other plugin
# Combining two or more team colors is NOT POSSIBLE in CS 1.6: &x03, &x05, &x06, &x07 - only ONE of these can be used inside a message.
[Main Settings]
# If set to 1, all players will see all chats independent of whether they are dead or alive, excluding the other team's private chat.
# If set to 2, all players will see all chats, including the opposite team's private chat.
ALL_CHAT = 0
# Players with these flags will see all chats at all time, including all team chats.
ADMIN_LISTEN_FLAGS = i
# If the message starts with any of these symbols, it will be hidden in chat. Example: @, /, !
BLOCK_FIRST_SYMBOLS = @, /, \
# Prefixes for dead and alive players. Yes, you can set a prefix like *ALIVE* too.
DEAD_PREFIX = *DEAD*
ALIVE_PREFIX =
# Team prefixes that are usually shown in the team chat, in brackets.
TEAM_PREFIX_T = Terrorist
TEAM_PREFIX_CT = Counter-Terrorist
TEAM_PREFIX_SPEC = Spectator
# Text that will show when the plugin can't detect a player's location when using geoip.
ERROR_TEXT = ?
# Time formatting when $time$ is used. More info here: http://www.cplusplus.com/reference/ctime/strftime/
FORMAT_TIME = %X
# This is the file where chat messages will be logged. If you want to disable logging, leave this setting blank.
CHAT_LOG_FILE =
# Format to use for the chat logs. Formats are defined in the [Format Definitions] section.
CHAT_LOG_SAY_FORMAT = log_say
CHAT_LOG_TEAM_FORMAT = log_team
# Here you can set a sound that will play when a message is written in chat. If it's blank, no sound will be played.
SAY_SOUND =
SAY_TEAM_SOUND =
[Format Definitions]
# In this section you can define chat formats that you can assign to different users in the [User Formats] section.
# You should create a different format for the say and say_team chat, if you don't wan't them to look the same.
# You can use the following placeholders: $admin_prefix$, $dead_prefix$, $team$, $name$, $custom_name$, $ip$, $steam$, $userid$, $chat_color$, $message$, $time$
# You can also use these, but they need to be enabled in the .sma file first: $health$, $armor$, $frags$, $deaths$, $city$, $country$, $country_code$, $continent$, $continent_code$
# To enable an additional placeholder, simply locate the #define ARG_ line in the beginning of the .sma file and uncomment it (remove //), then recompile the plugin.
# In the sections down below you can set different prefixes, chat colors and custom names for each player or a group of players.
# You can add an unlimited amount of these extras. Each new extra needs to be added on a new line in the correct section.
# Bear in mind that the extras that are higher in the list have priority over the ones below them.
# This means that if a player for example meets the requirements for 2 or more prefixes, he will receive the one that's first in the list.
# In the syntaxes, you will find a parameter called "type". This parameter can be one of the following: flag, name, ip, steam, anyflag or noprefix.
# If it's set to "flag" (or "flags"), the plugin will check if the player has ALL of the admin flags set in the "info" parameter. You can set multiple flags instead of only one.
# The "name", "ip" and "steam" settings will check if the player's name, IP or SteamID is equal to the one set in the "info" parameter.
# When set to "anyflag", it will check if the player has ANY of the admin flags specified in the "info" parameter.
# Setting it to "noprefix" will check if the player doesn't have a prefix set. The "info" parameter doesn't have a function in this case, so you can leave it blank.
[Admin Prefixes]
# Here you can add custom prefixes to specific players or flags that are shown when using $admin_prefix$.
# Syntax: "type" "info" "prefix"
"flag" "k" "[OWNER]"
"flag" "r" "[MENAGER]"
"flag" "a" "[ADMIN]"
"flag" "b" "[TEST ADMIN]"
[Chat Colors]
# Here you can add different chat colors to specific players or flags that are shown when using $chat_color$.
# Syntax: "type" "info" "chat color"
"flag" "b" "&x04"
"flag" "" "&x01"
[Name Customization]
# Here you can modify the name shown for certain players when using $custom_name$.
# Syntax: "type" "info" "custom name"
[Say/Say_Team Formats]
# Here you can specify the chat style for every user or flag.
; AMX Mod X plugins
nms.amxx ; anti swear-spam-pup
;amxbans_core.amxx
;amxbans_main.amxx
; Admin Base - Always one has to be activated
admin.amxx ; admin base (required for any admin-related)
;admin_sql.amxx ; admin base - SQL version (comment admin.amxx)
; Basic
admincmd.amxx ; basic admin console commands
adminhelp.amxx ; help command for admin console commands
adminslots.amxx ; slot reservation
multilingual.amxx ; Multi-Lingual management
; Menus
menufront.amxx ; front-end for admin menus
cmdmenu.amxx ; command menu (speech, settings)
plmenu.amxx debug ; players menu (kick, ban, client cmds.)
;telemenu.amxx ; teleport menu (Fun Module required!)
mapsmenu.amxx ; maps menu (vote, changelevel)
pluginmenu.amxx
; Menus for commands/cvars organized by plugin
; Chat / Messages
;ultimate_adblock.amxx
adminchat.amxx ; console chat commands
crx_chatmanager.amxx ; Admin spy,prefix,color.
;antiflood.amxx ; prevent clients from chat-flooding the server
scrollmsg.amxx ; displays a scrolling message
imessage.amxx ; displays information messages
adminvote.amxx ; vote commands
;block_advertising.amxx
; Map related
nextmap.amxx ; displays next map in mapcycle
mapchooser.amxx ; allows to vote for next map
timeleft.amxx ; displays time left on map
; roundsleft.amxx ; bach dir max b rounds
; Configuration
pausecfg.amxx ; allows to pause and unpause some plugins
statscfg.amxx ; allows to manage stats plugins via menu and commands
; Counter-Strike
restmenu.amxx ; restrict weapons menu
statsx_n.amxx ; stats on death or round end (CSX Module required!)
;miscstats.amxx ; bunch of events announcement for Counter-Strike
;stats_logging.amxx ; weapons stats logging (CSX Module required!)
; Enable to use AMX Mod plugins
;amxmod_compat.amxx ; AMX Mod backwards compatibility layer
; Custom - Add 3rd party plugins here
resetscore.amxx
round_money.amxx
admin_spec_esp.amxx
fast_sniper_switch.amxx
afkbombtransfer.amxx
sniperlimit.amxx debug
QuakeSounds.amxx
amx_ip.amxx
amx_gag.amxx
; admin_chat_colors.amxx // THIS IS THE ONE I WAS USING AND IT WORKED WITH THE SAME PLUGINS
crx_fireinthehole.amxx
parachute.amxx
FirstRoundKnife.amxx
; bad_camper.amxx
walkguard.amxx
fullserver_speckick.amxx
round_chat_msg.amxx
crx_motdcommands.amxx ;/rules
;GHW_Weapon_Replacement.amxx
BasicSkillpoints.amxx
Hello @OciXCrom
This looks like a great plugin,I want it because of the prefixs and the Admin see all feature (the one from OciXCrom's Admin Chat didn't work for me !!)
I think I installed everything right but it didn't work,in fact The whole server chat completely disappeared except admin chat from your other plugin
# Combining two or more team colors is NOT POSSIBLE in CS 1.6: &x03, &x05, &x06, &x07 - only ONE of these can be used inside a message.
[Main Settings]
# If set to 1, all players will see all chats independent of whether they are dead or alive, excluding the other team's private chat.
# If set to 2, all players will see all chats, including the opposite team's private chat.
ALL_CHAT = 0
# Players with these flags will see all chats at all time, including all team chats.
ADMIN_LISTEN_FLAGS = i
# If the message starts with any of these symbols, it will be hidden in chat. Example: @, /, !
BLOCK_FIRST_SYMBOLS = @, /, \
# Prefixes for dead and alive players. Yes, you can set a prefix like *ALIVE* too.
DEAD_PREFIX = *DEAD*
ALIVE_PREFIX =
# Team prefixes that are usually shown in the team chat, in brackets.
TEAM_PREFIX_T = Terrorist
TEAM_PREFIX_CT = Counter-Terrorist
TEAM_PREFIX_SPEC = Spectator
# Text that will show when the plugin can't detect a player's location when using geoip.
ERROR_TEXT = ?
# Time formatting when $time$ is used. More info here: http://www.cplusplus.com/reference/ctime/strftime/
FORMAT_TIME = %X
# This is the file where chat messages will be logged. If you want to disable logging, leave this setting blank.
CHAT_LOG_FILE =
# Format to use for the chat logs. Formats are defined in the [Format Definitions] section.
CHAT_LOG_SAY_FORMAT = log_say
CHAT_LOG_TEAM_FORMAT = log_team
# Here you can set a sound that will play when a message is written in chat. If it's blank, no sound will be played.
SAY_SOUND =
SAY_TEAM_SOUND =
[Format Definitions]
# In this section you can define chat formats that you can assign to different users in the [User Formats] section.
# You should create a different format for the say and say_team chat, if you don't wan't them to look the same.
# You can use the following placeholders: $admin_prefix$, $dead_prefix$, $team$, $name$, $custom_name$, $ip$, $steam$, $userid$, $chat_color$, $message$, $time$
# You can also use these, but they need to be enabled in the .sma file first: $health$, $armor$, $frags$, $deaths$, $city$, $country$, $country_code$, $continent$, $continent_code$
# To enable an additional placeholder, simply locate the #define ARG_ line in the beginning of the .sma file and uncomment it (remove //), then recompile the plugin.
# In the sections down below you can set different prefixes, chat colors and custom names for each player or a group of players.
# You can add an unlimited amount of these extras. Each new extra needs to be added on a new line in the correct section.
# Bear in mind that the extras that are higher in the list have priority over the ones below them.
# This means that if a player for example meets the requirements for 2 or more prefixes, he will receive the one that's first in the list.
# In the syntaxes, you will find a parameter called "type". This parameter can be one of the following: flag, name, ip, steam, anyflag or noprefix.
# If it's set to "flag" (or "flags"), the plugin will check if the player has ALL of the admin flags set in the "info" parameter. You can set multiple flags instead of only one.
# The "name", "ip" and "steam" settings will check if the player's name, IP or SteamID is equal to the one set in the "info" parameter.
# When set to "anyflag", it will check if the player has ANY of the admin flags specified in the "info" parameter.
# Setting it to "noprefix" will check if the player doesn't have a prefix set. The "info" parameter doesn't have a function in this case, so you can leave it blank.
[Admin Prefixes]
# Here you can add custom prefixes to specific players or flags that are shown when using $admin_prefix$.
# Syntax: "type" "info" "prefix"
"flag" "k" "[OWNER]"
"flag" "r" "[MENAGER]"
"flag" "a" "[ADMIN]"
"flag" "b" "[TEST ADMIN]"
[Chat Colors]
# Here you can add different chat colors to specific players or flags that are shown when using $chat_color$.
# Syntax: "type" "info" "chat color"
"flag" "b" "&x04"
"flag" "" "&x01"
[Name Customization]
# Here you can modify the name shown for certain players when using $custom_name$.
# Syntax: "type" "info" "custom name"
[Say/Say_Team Formats]
# Here you can specify the chat style for every user or flag.
; AMX Mod X plugins
nms.amxx ; anti swear-spam-pup
;amxbans_core.amxx
;amxbans_main.amxx
; Admin Base - Always one has to be activated
admin.amxx ; admin base (required for any admin-related)
;admin_sql.amxx ; admin base - SQL version (comment admin.amxx)
; Basic
admincmd.amxx ; basic admin console commands
adminhelp.amxx ; help command for admin console commands
adminslots.amxx ; slot reservation
multilingual.amxx ; Multi-Lingual management
; Menus
menufront.amxx ; front-end for admin menus
cmdmenu.amxx ; command menu (speech, settings)
plmenu.amxx debug ; players menu (kick, ban, client cmds.)
;telemenu.amxx ; teleport menu (Fun Module required!)
mapsmenu.amxx ; maps menu (vote, changelevel)
pluginmenu.amxx
; Menus for commands/cvars organized by plugin
; Chat / Messages
;ultimate_adblock.amxx
adminchat.amxx ; console chat commands
crx_chatmanager.amxx ; Admin spy,prefix,color.
;antiflood.amxx ; prevent clients from chat-flooding the server
scrollmsg.amxx ; displays a scrolling message
imessage.amxx ; displays information messages
adminvote.amxx ; vote commands
;block_advertising.amxx
; Map related
nextmap.amxx ; displays next map in mapcycle
mapchooser.amxx ; allows to vote for next map
timeleft.amxx ; displays time left on map
; roundsleft.amxx ; bach dir max b rounds
; Configuration
pausecfg.amxx ; allows to pause and unpause some plugins
statscfg.amxx ; allows to manage stats plugins via menu and commands
; Counter-Strike
restmenu.amxx ; restrict weapons menu
statsx_n.amxx ; stats on death or round end (CSX Module required!)
;miscstats.amxx ; bunch of events announcement for Counter-Strike
;stats_logging.amxx ; weapons stats logging (CSX Module required!)
; Enable to use AMX Mod plugins
;amxmod_compat.amxx ; AMX Mod backwards compatibility layer
; Custom - Add 3rd party plugins here
resetscore.amxx
round_money.amxx
admin_spec_esp.amxx
fast_sniper_switch.amxx
afkbombtransfer.amxx
sniperlimit.amxx debug
QuakeSounds.amxx
amx_ip.amxx
amx_gag.amxx
; admin_chat_colors.amxx // THIS IS THE ONE I WAS USING AND IT WORKED WITH THE SAME PLUGINS
crx_fireinthehole.amxx
parachute.amxx
FirstRoundKnife.amxx
; bad_camper.amxx
walkguard.amxx
fullserver_speckick.amxx
round_chat_msg.amxx
crx_motdcommands.amxx ;/rules
;GHW_Weapon_Replacement.amxx
BasicSkillpoints.amxx
this is not the problem
this is the default value, means allchat is disabled, if it set to 1, you can read what dead teammates write, if it's set to 2, you can see what everyone is writing, so 0 you see only alive players,
his problems lies elsewhere
edit: are all plugins loading?
give us amxx plugins
Last edited by tarsisd2; 05-22-2018 at 08:40.
Reason: edit
@karimoo97 - Your [Say/Say_Team Formats] section is empty. This is where the chat style is assigned for every user. Since you deleted everything, nobody in the server will have a valid chat style, so there will be no chat at all. Either assign some formats or restore the original settings:
PHP Code:
[Say/Say_Team Formats] # Here you can specify the chat style for every user or flag. # Syntax: "type" "info" "say format" "say_team format"
By the way, the admin chat plugin has nothing to do with this one. They are two totally different plugins. This one's for the default chat and the other one is for the admin chat commands. There's no "admin see all" feature in the other plugin.
@tarsisd2 - Yes. You can put colors anywhere in the .ini file as long as the line is going to show in the chat. You can customize everything as you like. Thanks for the translation, I added it.