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)

WhiteFang1319 11-16-2017 07:05

Re: Chat Manager [Admin Prefix & Color Chat]
 
Hello. Nice plugin.

Can you add a console command that'll reload all the configs of the ChatManager.ini just like amx_reloadadmins for users.ini?

OciXCrom 11-16-2017 08:16

Re: Chat Manager [Admin Prefix & Color Chat]
 
Sure, I'll have it in mind for the next update where I also plan to add the option to set different chat formatting on different flags.

khashayar007 12-23-2017 16:02

Re: Chat Manager [Admin Prefix & Color Chat]
 
there is a problem for example when I type /me or /admin first it prints the result of the command then prints what command I typed. It must be reversed.

OciXCrom 12-23-2017 17:25

Re: Chat Manager [Admin Prefix & Color Chat]
 
It can't be dealt with. Either hide the "/" commands or ignore it.

khashayar007 12-24-2017 06:31

Re: Chat Manager [Admin Prefix & Color Chat]
 
&x05 dosent change color to gray.

OciXCrom 12-24-2017 08:44

Re: Chat Manager [Admin Prefix & Color Chat]
 
It depends on your configuration. You can't combine two or more team colors. Show what you did.

khashayar007 12-24-2017 10:42

Re: Chat Manager [Admin Prefix & Color Chat]
 
I even disabled all of my plugins but the grey color is still team color

PHP Code:

;Colors:
;&
x07 red
;&x06 blue
;&x05 white
;&x04 green
;&x03 team color
;&x01 normal
;You can use only one of the following in a single message: &x07, &x06, &x05, &x03.
;If 
you use more than one in a messageit will automatically select the color that is first in the list and will replace all other colors with that one.

[
Settings]
;If 
enabledall players will see all chats independant of whether they are dead or aliveThis won't let them view the other team'private chat however.
ALL_CHAT 0

;Players with these flags will see all chats at all timeincluding all team chats.
ADMIN_LISTEN_FLAGS m

;If the message starts with any of these symbolsit will be hidden in chatExample: @, /, !
BLOCK_FIRST_SYMBOLS = @, /

DEAD_PREFIX = *DEAD*
ALIVE_PREFIX =
TEAM_PREFIX_T = (Terrorist)
TEAM_PREFIX_CT = (Counter-Terrorist)
TEAM_PREFIX_SPEC = (Spectator)
ERROR_TEXT = ?
FORMAT_TIME = %X

FORMAT_SAY 
= %dead_prefix% &x05%admin_prefix% &x04%name% &x01: %chat_color%%message%
FORMAT_SAY_TEAM = %dead_prefix% %team% &x05%admin_prefix% &x04%name% &x01: %chat_color%%message%

;%
admin_prefix% = the admin prefix
;%dead_prefix% = DEAD_PREFIX when dead <> ALIVE_PREFIX when alive
;%team% = TEAM_PREFIX_TTEAM_PREFIX_CT or TEAM_PREFIX_SPEC depending on player's team
;%name% = player'
s name
;%ip% = player's IP address
;%steam% = player'
s SteamID
;%userid% = player's userid
;%chat_color% = player'
s chat color
;%message% = the actual message
;%time% = current time according to FORMAT_TIME
;%health% = player's health [ disabled by default ]
;%armor% = player'
s armor disabled by default ]
;%
frags% = player's frags [ disabled by default ]
;%deaths% = player'
s deaths disabled by default ]
;%
city% = player's city [ disabled by default ]
;%country% = player'
s country disabled by default ]
;%
country_code% = player's country code [ disabled by default ]
;%continent% = player'
s continent disabled by default ]
;%
continent_code% = player's continent code [ disabled by default ]

[Admin Prefixes]
;<flags> = <prefix>

l = [Owner]
a = [Head Admin]
d = [Admin]
tz = [VIP]

[Chat Colors]
;<flags> = <chat color>
d = &x05
z = &x01

[Name/IP/Steam Prefixes]
;"type=[name|ip|steam]" "info" "prefix" 


CrAzY MaN 12-29-2017 03:39

Re: Chat Manager [Admin Prefix & Color Chat]
 
Prefix of player with flag "l" comes out to be [Registered] even i config it properly!
Is it a bug or my config problem?

ChatManager.ini
PHP Code:

;Colors:
;&
x07 red
;&x06 blue
;&x05 white
;&x04 green
;&x03 team color
;&x01 normal
;You can use only one of the following in a single message: &x07, &x06, &x05, &x03.
;If 
you use more than one in a messageit will automatically select the color that is first in the list and will replace all other colors with that one.

[
Settings]
;If 
enabledall players will see all chats independant of whether they are dead or aliveThis won't let them view the other team'private chat however.
ALL_CHAT 1

;Players with these flags will see all chats at all timeincluding all team chats.
ADMIN_LISTEN_FLAGS i

;If the message starts with any of these symbolsit will be hidden in chatExample: @, /, !
BLOCK_FIRST_SYMBOLS = @

DEAD_PREFIX = *DEAD*
ALIVE_PREFIX =
TEAM_PREFIX_T = (Terrorist)
TEAM_PREFIX_CT = (Counter-Terrorist)
TEAM_PREFIX_SPEC = (Spectator)
ERROR_TEXT = ?
FORMAT_TIME = %X

FORMAT_SAY 
= %dead_prefix% %city% &x04%admin_prefix% &x03%name% &x01: %chat_color%%message%
FORMAT_SAY_TEAM = %dead_prefix% %city% %team% &x04%admin_prefix% &x03%name% &x01: %chat_color%%message%

;%
admin_prefix% = the admin prefix
;%dead_prefix% = DEAD_PREFIX when dead <> ALIVE_PREFIX when alive
;%team% = TEAM_PREFIX_TTEAM_PREFIX_CT or TEAM_PREFIX_SPEC depending on player's team
;%name% = player'
s name
;%ip% = player's IP address
;%steam% = player'
s SteamID
;%userid% = player's userid
;%chat_color% = player'
s chat color
;%message% = the actual message
;%time% = current time according to FORMAT_TIME
;%health% = player's health [ disabled by default ]
;%armor% = player'
s armor disabled by default ]
;%
frags% = player's frags [ disabled by default ]
;%deaths% = player'
s deaths disabled by default ]
;%
city% = player's city [ disabled by default ]
;%country% = player'
s country disabled by default ]
;%
country_code% = player's country code [ disabled by default ]
;%continent% = player'
s continent disabled by default ]
;%
continent_code% = player's continent code [ disabled by default ]

[Admin Prefixes]
;<flags> = <prefix>
b = [Registered]
i = [VIP]
e = [Ultra VIP]
d = [Admin]
a = [Super Admin]
l = [Core Member] 

[Chat Colors]
;<flags> = <chat color>
b = &x04
i = &x04
e = &x04
d = &x04
a = &x04
l = &x04


[Name/IP/Steam Prefixes]
;"type=[name|ip|steam]" "info" "prefix"

;"name" "Pawan" "[Chutiya Owner :D]"
;"steam" "STEAM_0:0:50153248" "[OciXCrom]"
;"ip" "127.0.0.1" "[BOT]" 


Plugins.ini
PHP Code:

AMX Mod X plugins
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 (speechsettings)
plmenu.amxx        players menu (kickbanclient cmds.)
;
telemenu.amxx        teleport menu (Fun Module required!)
mapsmenu.amxx        maps menu (votechangelevel)
pluginmenu.amxx        Menus for commands/cvars organized by plugin

Chat Messages
adminchat
.amxx        console chat commands
antiflood
.amxx        prevent clients from chat-flooding the server
scrollmsg
.amxx        displays a scrolling message
imessage
.amxx        displays information messages
adminvote
.amxx        vote commands

Map related
nextmap
.amxx        displays next map in mapcycle
mapchooser
.amxx        allows to vote for next map
timeleft
.amxx        displays time left on map

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
.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!)


Custom Add 3rd party plugins here
pub_war_reapi
.amxx
;PuBWaRv5.amxx
;pub_war_simple.amxx
knifeitup_multi
.amxx
anti_flash
.amxx
;ad_manager.amxx
amx_demorecorder
.amxx
amx_gore_ultimate
.amxx
rs_adv
.amxx
VIP
.amxx
;Privilege_System.amxx
crx_chatmanager
.amxx
admin_spec_esp
.amxx
round_money
.amxx
xredirect
.amxx
loadingsong
.amxx 

Even i tried disabling adminchat!

brlight 12-29-2017 04:50

Re: Chat Manager [Admin Prefix & Color Chat]
 
How can I add chat color by steam id? Can you write an example?
Thanks.

Edit:I guess is not possible, can you please add that option?

OciXCrom 12-29-2017 08:06

Re: Chat Manager [Admin Prefix & Color Chat]
 
@khashayar007 - it's a problem with the colorchat library, I'll have a look when I have the chance.

@CrAzY MaN - there's no bug/problem. If you have both flags "b" and "l", the [Reserved] Prefix will have priority because it's on top. If you want the [Core Member] to have priority, move it above the [Registered] one. Order them from highest to lowest. Adminchat has nothing to do with this plugin.

@brlight - doing that will add unnecessary load to the plugin and I don't really think it's needed. It's possible for the prefixes, but I don't like the idea of having it for the colors too. What you can do is put the chat color on a specific flag and give that flag to a certain steamid.


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

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