Raised This Month: $12 Target: $400
 3% 

Chat Manager [Admin Prefix & Color Chat]


Post New Thread Reply   
 
Thread Tools Display Modes
karimoo97
Member
Join Date: Apr 2018
Location: Tamazgha
Old 05-22-2018 , 23:45   Re: Chat Manager [Admin Prefix & Color Chat]
Reply With Quote #61

EDIT: I fixed it,thank you !!!
Spoiler


Quote:
Originally Posted by OciXCrom View Post
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.
AAh i see,so this means that admins can only see the others amx_psay messages ?? BTW it's a great plugin too

Last edited by karimoo97; 05-23-2018 at 00:37.
karimoo97 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-23-2018 , 07:38   Re: Chat Manager [Admin Prefix & Color Chat]
Reply With Quote #62

It clearly says other players' private messages. That means there's an option for admins to see amx_psay messages.
__________________

Last edited by OciXCrom; 06-18-2018 at 07:48.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
CrAzY MaN
Senior Member
Join Date: Mar 2017
Location: India
Old 06-16-2018 , 02:03   Re: Chat Manager [Admin Prefix & Color Chat]
Reply With Quote #63

Code:
L 06/14/2018 - 19:16:13: Start of error session. L 06/14/2018 - 19:16:13: Info (map "aa_dima2") (file "addons/amxmodx/logs/error_20180614.log") L 06/14/2018 - 19:16:13: replace() buffer not big enough (119>=114) L 06/14/2018 - 19:16:13: [AMXX] Displaying debug trace (plugin "crx_chatmanager.amxx", version "4.1") L 06/14/2018 - 19:16:13: [AMXX] Run time error 10: native error (native "replace") L 06/14/2018 - 19:16:13: [AMXX]    [0] string_stocks.inc::replace_all (line 215) L 06/14/2018 - 19:16:13: [AMXX]    [1] crx_chatmanager.sma::apply_replacements (line 721) L 06/14/2018 - 19:16:13: [AMXX]    [2] crx_chatmanager.sma::Hook_Say (line 566)
__________________
CrAzY MaN is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 06-16-2018 , 07:58   Re: Chat Manager [Admin Prefix & Color Chat]
Reply With Quote #64

Looks like someone sent a message that is too big for the chat to handle. The max message size is set to 150 characters in the first #define lines of the plugin. You can lower it if you have too long prefixes/chat styles in your .ini file. Can you post the file?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
CrAzY MaN
Senior Member
Join Date: Mar 2017
Location: India
Old 06-16-2018 , 08:33   Re: Chat Manager [Admin Prefix & Color Chat]
Reply With Quote #65

I have a prefix [Certified Hacker]

ChatManager.ini
Code:
#==============================================# # Chat Manager by OciXCrom: Configuration file # #==============================================# # Colors: &x01 (DEFAULT), &x03 (TEAM COLOR); &x04 (GREEN); &x05 (WHITE); &x06 (BLUE); &x07 (RED) # 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 = 1 # Players with these flags will see all chats at all time, including all team chats. ADMIN_LISTEN_FLAGS = l # 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 = Aatankwadi TEAM_PREFIX_CT = Police 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: <a href="http://www.cplusplus.com/reference/ctime/strftime/" target="_blank" rel="nofollow noopener">http://www.cplusplus.com/reference/ctime/strftime/</a> 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 = chatmanager.log # 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 = misc/say_sound.wav SAY_TEAM_SOUND = misc/say_sound.wav [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. # Syntax: format name = format style format_admin = $dead_prefix$ &x04$admin_prefix$ &x03$custom_name$ &x01: $chat_color$$message$ format_admin_team = $dead_prefix$ ($team$) &x04$admin_prefix$ &x03$custom_name$ &x01: $chat_color$$message$ format_player = $dead_prefix$ &x03$custom_name$ &x01: $chat_color$$message$ format_player_team = $dead_prefix$ ($team$) &x03$custom_name$ &x01: $chat_color$$message$ log_say = [ $ip$ | $steam$ ] $dead_prefix$ $name$: $message$ log_team = [ $ip$ | $steam$ ] ($team$) $dead_prefix$ $name$: $message$ # 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" "name" "{{{Panthers--->CrAzY MaN}}}" "[Genius]" "name" "Wildcard" "[Certified Hacker]" "steam" "STEAM_0:0:41983649" "[Noob]" "steam" "BOT" "[BOT]" "ip" "127.0.0.1" "[BOT]" "flag" "l" "[Head Admin]" "flag" "a" "[Super Admin]" "flag" "d" "[Admin]" "flag" "e" "[Ultra VIP]" "flag" "b" "[VIP]" [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" "l" "&x04" "flag" "a" "&x04" "flag" "d" "&x04" "flag" "e" "&x04" "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" ;"name" "OciXCrom" "&x03Oci&x04XC&x03rom" "name" "Wildcard" "&x03Wild&x04card" ;"name" "R[^G^]C x |CrAzY MaN|" "&x04R[^G^]C &x01x |&x03CrAzY MaN&x01|" "name" "R[^G^]C x |Wildcard|" "&x04R[^G^]C &x01x |&x03Wildcard&x01|" [Say/Say_Team Formats] # Here you can specify the chat style for every user or flag. # Syntax: "type" "info" "say format" "say_team format" "noprefix" "" "format_player" "format_player_team" "flag" "" "format_admin" "format_admin_team"
__________________

Last edited by CrAzY MaN; 06-17-2018 at 00:55.
CrAzY MaN is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 06-18-2018 , 07:47   Re: Chat Manager [Admin Prefix & Color Chat]
Reply With Quote #66

I uploaded a fix, redownload crx_chatmanager.sma. It should be fine now, I tested it with your .ini file.

By the way, a simple tip. Instead of doing this:

PHP Code:
"flag" "l" "&x04"
"flag" "a" "&x04"
"flag" "d" "&x04"
"flag" "e" "&x04"
"flag" "b" "&x04"
"flag" "" "&x01" 
You can just do this:

PHP Code:
"anyflag" "ladeb" "&x04"
"flag" "" "&x01" 
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-03-2018 , 09:16   Re: Chat Manager [Admin Prefix & Color Chat]
Reply With Quote #67


  • Added support for OciXCrom's Rank System.
  • You can now display custom rank names in the chat along with the admin prefix!


  • The update includes changes only to the file crx_chatmanager.sma.
  • Added an option to set custom ranks according to the players' level in the rank system.
  • To do this you will have to use the keyword "level" when adding an extra.
  • Example: "level" "3" "[My Cool Prefix]"
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
highcoder
Member
Join Date: Jun 2018
Old 09-17-2018 , 16:34   Re: Chat Manager [Admin Prefix & Color Chat]
Reply With Quote #68

Hi OciXCrom, thanks for giving us this handy plugin. I wanted to report a bug. Your plugin conflicts with most swear filter plugins, so we can't use swear filter and similar plugins. Do you have a solution for this bug? As an example, your plugin not working simultaneously with the following plugins.

[1] https://forums.alliedmods.net/showthread.php?t=1404
[2] https://forums.alliedmods.net/showthread.php?p=89648
highcoder is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 09-17-2018 , 17:21   Re: Chat Manager [Admin Prefix & Color Chat]
Reply With Quote #69

Try moving the swear plugin above Chat Manager in plugins.ini. If it still doesn't work, I'm planning to make an update that will fix this problem.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
highcoder
Member
Join Date: Jun 2018
Old 09-17-2018 , 17:34   Re: Chat Manager [Admin Prefix & Color Chat]
Reply With Quote #70

Quote:
Originally Posted by OciXCrom View Post
Try moving the swear plugin above Chat Manager in plugins.ini. If it still doesn't work, I'm planning to make an update that will fix this problem.
Thanks for your reply. I moved it, but the result is the same.
highcoder is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:03.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode