AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   Chat Manager [Admin Prefix & Color Chat] (https://forums.alliedmods.net/showthread.php?t=297952)

Deszzz 05-11-2019 13:53

Re: Chat Manager [Admin Prefix & Color Chat]
 
Quote:

Originally Posted by OciXCrom (Post 2650572)
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

OciXCrom 05-11-2019 18:22

Re: Chat Manager [Admin Prefix & Color Chat]
 
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

OciXCrom 05-30-2019 15:48

Re: Chat Manager [Admin Prefix & Color Chat]
 
https://img.shields.io/badge/update-...2019-green.svg
  • 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 


marcelowzd 06-09-2019 21:28

Re: Chat Manager [Admin Prefix & Color Chat]
 
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)) 


Krtola 06-10-2019 00:32

Re: Chat Manager [Admin Prefix & Color Chat]
 
Is it safe to use this plugin when I already have rank sistem that also use chat prefix for players name?

OciXCrom 06-10-2019 07:12

Re: Chat Manager [Admin Prefix & Color Chat]
 
@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.

Snake. 06-10-2019 10:43

Re: Chat Manager [Admin Prefix & Color Chat]
 
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]


OciXCrom 06-10-2019 12:54

Re: Chat Manager [Admin Prefix & Color Chat]
 
Quote:

Originally Posted by Snake. (Post 2655120)
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.

Krtola 06-11-2019 05:02

Re: Chat Manager [Admin Prefix & Color Chat]
 
1 Attachment(s)
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.

OciXCrom 06-11-2019 08:24

Re: Chat Manager [Admin Prefix & Color Chat]
 
Quote:

Originally Posted by Krtola (Post 2655198)
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.


All times are GMT -4. The time now is 10:01.

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