Raised This Month: $344 Target: $400
 86%   Almost there!

Chat Manager [Admin Prefix & Color Chat]


Post New Thread Reply   
 
Thread Tools Display Modes
Deszzz
Member
Join Date: Sep 2017
Old 05-11-2019 , 13:53   Re: Chat Manager [Admin Prefix & Color Chat]
Reply With Quote #111

Quote:
Originally Posted by OciXCrom View Post
You need to modify the "format_admin_team" and "format_player_team" setting in the configuration file.
Simply put the green color in the beginning (&x04) and remove any other colors in both settings.
Sorry, been busy. Hey I tried it, but apparently didnt work, these are my settings:

format_admin = $dead_prefix$ &x04[$rank$] &x03$custom_name$ &x01: $chat_color$$message$
format_admin_team = &x04$dead_prefix$ ($team$) [$rank$] $custom_name$ : $chat_color$$message$
format_player = $dead_prefix$ &x04[$rank$] &x03$custom_name$ &x01: $chat_color$$message$
format_player_team = &x04$dead_prefix$ ($team$)[$rank$] $custom_name$ : $chat_color$$message$

This is the chat Im trying to change:
http://oi63.tinypic.com/izrltu.jpg
Deszzz is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-11-2019 , 18:22   Re: Chat Manager [Admin Prefix & Color Chat]
Reply With Quote #112

The chat on the image is the admin chat, this plugin changes the regular chat. For admin chat, use this - https://forums.alliedmods.net/showthread.php?t=272418
__________________

Last edited by OciXCrom; 05-11-2019 at 18:23.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Old 05-12-2019, 10:35
amirwolf
This message has been deleted by amirwolf.
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-30-2019 , 15:48   Re: Chat Manager [Admin Prefix & Color Chat]
Reply With Quote #113


  • Added the ability to set an expiration date for the extras.
    • The expiration date can be added in the end of the line where the extra is set.
    • For example, if you want to give a prefix to the player named OciXCrom that will expire on 20.09.2019, you need to type "name" "OciXCrom" "[Prefix]" "20.09.2019" on a new line in the [Admin Prefixes] section.
  • Added a new setting EXPIRATION_DATE_FORMAT that tells the plugin which date format to use with expiration date. By default, it's set to day.month.year.
  • Added a new setting EXPIRATION_DATE_BEHAVIOR that tells the plugin what to do when a specific extra has expired:
    • 0 = ignore the entire line
    • 1 = put a "#" symbol in the beginning of the line
    • 2 = remove the entire line from the file
  • Added the standard *SPEC* prefix for spectators. It can be changed from the new SPEC_PREFIX setting.

If you're updating from an older version and don't want to replace the entire .ini file, simply add these lines in the [Settings] section:

PHP Code:
# The standard spectator prefix.
SPEC_PREFIX = *SPEC*

# Date format for use with expiration dates where available in sections down below.
# For a list of valid parameters, see: http://www.cplusplus.com/reference/ctime/strftime/
EXPIRATION_DATE_FORMAT = %d.%m.%Y

# What to do when the date for a specific extra has expired?
# 0 = ignore the entire line
# 1 = put a "#" symbol in the beginning of the line
# 2 = remove the entire line from the file
# Note that when the setting is non-zero, the entire file will be rewritten after being read.
EXPIRATION_DATE_BEHAVIOR 
__________________

Last edited by OciXCrom; 05-30-2019 at 15:48.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
marcelowzd
Senior Member
Join Date: Feb 2011
Location: São Paulo, Brazil
Old 06-09-2019 , 21:28   Re: Chat Manager [Admin Prefix & Color Chat]
Reply With Quote #114

Hi, i think i found a bug. When i type just %s, the following happens

Code:
L 06/09/2019 - 22:23:13: String formatted incorrectly - parameter 4 (total 3)
L 06/09/2019 - 22:23:13: [AMXX] Displaying debug trace (plugin "crx_chatmanager.amxx", version "4.4")
L 06/09/2019 - 22:23:13: [AMXX] Run time error 25: parameter error 
L 06/09/2019 - 22:23:13: [AMXX]    [0] cromchat.inc::CC_SendMatched (line 264)
L 06/09/2019 - 22:23:13: [AMXX]    [1] crx_chatmanager.sma::Hook_Say (line 742)
This was also happening in an older version that I was using. It was actually what made me update but it still happens.

Temporary fix
PHP Code:
//Inside hook_say

static szArgs[WRITTEN_MESSAGE_SIZE]
read_args(szArgscharsmax(szArgs)); remove_quotes(szArgs)

replace_allszArgscharsmaxszArgs ), "%s""" );
replace_allszArgscharsmaxszArgs ), "%i""" );
replace_allszArgscharsmaxszArgs ), "%d""" );

CC_RemoveColors(szArgscharsmax(szArgs)) 
__________________

Last edited by marcelowzd; 06-09-2019 at 22:12. Reason: Added temp fix
marcelowzd is offline
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 06-10-2019 , 00:32   Re: Chat Manager [Admin Prefix & Color Chat]
Reply With Quote #115

Is it safe to use this plugin when I already have rank sistem that also use chat prefix for players name?
__________________
Check my original plugins for cs 1.6 and subscribe on channel
Look at the video below to see blind grenade for zombies

https://www.youtube.com/watch?v=ORC7ZmoaipQ

Look at the video below to see Zombie Hide And Seek mode

https://www.youtube.com/watch?v=xpyYb65EgGs
Krtola is offline
Send a message via Skype™ to Krtola
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 06-10-2019 , 07:12   Re: Chat Manager [Admin Prefix & Color Chat]
Reply With Quote #116

@marcelowzd - I'll have a look into this soon.

@Krtola - if you're using my rank system, it's not a problem because the two plugins are made to work together - you can use the prefix from the rank system in the chat along with the admin prefix. If you're using a different rank system which already adds prefixes in chat - it probably won't work. You can upload that plugin so I can have a look.
__________________

Last edited by OciXCrom; 06-10-2019 at 07:13.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Snake.
Senior Member
Join Date: Jul 2017
Old 06-10-2019 , 10:43   Re: Chat Manager [Admin Prefix & Color Chat]
Reply With Quote #117

Code:
[tr]
CM_MENU_TITLE = \y[\rChat Yoneticisi\y] \wKullanici Ayarlari
CM_MENU_PREFIX = Onek
CM_MENU_CHAT_COLOR = Chat Rengi
CM_MENU_CUSTOM_NAME = Ozel Isim
CM_MENU_ENABLED = \y[ACIK]
CM_MENU_DISABLED = \r[KAPALI]
Snake. is offline
Send a message via Skype™ to Snake.
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 06-10-2019 , 12:54   Re: Chat Manager [Admin Prefix & Color Chat]
Reply With Quote #118

Quote:
Originally Posted by Snake. View Post
Code:
[tr]
CM_MENU_TITLE = \y[\rChat Yoneticisi\y] \wKullanici Ayarlari
CM_MENU_PREFIX = Onek
CM_MENU_CHAT_COLOR = Chat Rengi
CM_MENU_CUSTOM_NAME = Ozel Isim
CM_MENU_ENABLED = \y[ACIK]
CM_MENU_DISABLED = \r[KAPALI]
Added. Thanks.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 06-11-2019 , 05:02   Re: Chat Manager [Admin Prefix & Color Chat]
Reply With Quote #119

If u have time....
Anyway, this is used by my friend,I never liked any rank stuff.

I'll suggest to him to use your rank and chrome chat plugins.
Attached Files
File Type: zip rank-2.zip (4.3 KB, 56 views)
__________________
Check my original plugins for cs 1.6 and subscribe on channel
Look at the video below to see blind grenade for zombies

https://www.youtube.com/watch?v=ORC7ZmoaipQ

Look at the video below to see Zombie Hide And Seek mode

https://www.youtube.com/watch?v=xpyYb65EgGs
Krtola is offline
Send a message via Skype™ to Krtola
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 06-11-2019 , 08:24   Re: Chat Manager [Admin Prefix & Color Chat]
Reply With Quote #120

Quote:
Originally Posted by Krtola View Post
If u have time....
Anyway, this is used by my friend,I never liked any rank stuff.

I'll suggest to him to use your rank and chrome chat plugins.
That rank system completely hardcoded and badly executed. There's no reason not to use mine, it's 100 times better and you can easily configure it as you like, even make it the same as the one you're currently using, plus it will automatically "combine" itself with the chat prefixes. There's no benefit in using the one you're currently using.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
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 22:36.


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