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)

Napoleon_be 08-29-2022 11:03

Re: Chat Manager [Admin Prefix & Color Chat]
 
dutch translation

Code:

[nl] -- LadderGoat
CM_MENU_TITLE = \y[\rChat Beheer\y] \wGebruikersinstellingen
CM_MENU_PREFIX = Voorvoegsel
CM_MENU_CHAT_COLOR = Chat Kleur
CM_MENU_CUSTOM_NAME = Aangepaste Naam
CM_MENU_ENABLED = \y[AAN]
CM_MENU_DISABLED = \r[UIT]


Qsai Wolf PS 09-14-2022 11:37

Re: Chat Manager [Admin Prefix & Color Chat]
 
Hello OciXCrom
I want help with this plugin
I add 2ames and a flag
my code in ini

"name" "Qsai Wolf PS" "&x07{&x04M&x07a&x01n&x07g&x04e&x01r&x07} "

"flag" "abcdefghijklmnopqrystuyxv" "&x07{&x04O&x07w&x01n&x04e&x01r&x07}"

but if I type any things like
(owner) Qsai Wolf PS : hello
my name is always red
and have a flag abd...xv

kltar0 09-15-2022 01:42

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

Originally Posted by Qsai Wolf PS (Post 2788832)
Hello OciXCrom
my name is always 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.

Because you set &x07 (red) you cannot use any other team color. That's why your name is always red.
To keep your name in your team color, use only white and green for prefix and name customization

Qsai Wolf PS 09-16-2022 16:14

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

Originally Posted by kltar0 (Post 2788876)
# 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.

Because you set &x07 (red) you cannot use any other team color. That's why your name is always red.
To keep your name in your team color, use only white and green for prefix and name customization

Before
"name" "Qsai Wolf PS" "&x07[&x04M&x07a&x01n&x07g&x04e&x01r&x07]"
After
"name" "Qsai Wolf PS" "&x01[&x04M&x07a&x01n&x07g&x04e&x01r&x01]"

and this didn't solve

kltar0 09-16-2022 16:32

Re: Chat Manager [Admin Prefix & Color Chat]
 
Of course didn’t change. You still have &x07 in your code.

If you want your name appear in team color remove all &x07 from the code or replace them with &x01 or &x04

Qsai Wolf PS 09-16-2022 16:56

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

Originally Posted by kltar0 (Post 2788967)
Of course didn’t change. You still have &x07 in your code.

If you want your name appear in team color remove all &x07 from the code or replace them with &x01 or &x04

oh it's bad
no more solves to use color team?

youngmulti 12-24-2022 09:54

Re: Chat Manager [Admin Prefix & Color Chat]
 
Hi!

I have your rank plugin installed and it works great but I have a problem with Chat Manager. I think I set everything up right, compiled the plugin, added the $rank$ formats in .sma but when I try to write something in chat, the message doesn't display.

In my console I noticed this message:
Code:

L 12/24/2022 - 15:38:41: Line 136: Format definition "format_player" doesn't exist.
L 12/24/2022 - 15:38:41: Line 137: Format definition "format_admin" doesn't exist.

I checked it and in this field I have it entered like this:
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" "[expiration date]"

"flag" "z" "format_player" "format_player_team"
"flag" "l" "format_admin" "format_admin_team"

I based this field on:
Code:

[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$
# Using OciXCrom's Rank System gives you access to even more placeholders: $rank$, $current_xp$, $next_xp$, $level$, $next_level$, $next_rank$. Only the first one is enabled by default.
# 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[$rank$] $admin_prefix$ &x03$custom_name$ &x01: $chat_color$$message$
format_admin_team = $dead_prefix$ ($team$) &x04[$rank$] $admin_prefix$ &x03$custom_name$ &x01: $chat_color$$message$
format_player = $dead_prefix$ &x04[$rank$] &x03$custom_name$ &x01: $chat_color$$message$
format_player_team = $dead_prefix$ ($team$) &x04[$rank$] &x03$custom_name$ &x01: $chat_color$$message$

What did I do wrong? I also turned off every plugin but it had no effect. When I disable the chat manager, the messages show up normally. In the console after typing amx_plugins, I get a message that the plugin is working.

mrshark45 12-30-2022 16:33

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

Originally Posted by sigerman (Post 2782674)
I have a lot of hltv servers recording demos ( extension .dem ). But in neither of them the demos are showing what the players are chatting when I have chat manager plugin activated.

If I deactivate the plugin, then the chats appear again.

If anyone still needs it to work for hltv to record the chat as well, this is the fix:

On line 875 instead of :
Code:

get_players(iPlayers, iPnum, "ch")
Place :
Code:

get_players(iPlayers, iPnum, "c")
Or into the config file ( ChatManager.ini ) set ALL_CHAT TO 2
Code:

ALL_CHAT = 2
I haven't tested it, but it should work because of :
Code:

if(g_eSettings[ALL_CHAT] == ALLCHAT_SEE_TEAM || (g_ePlayerData[id][PDATA_GLOBAL_CHAT] && !(bTeam && !g_eSettings[GLOBAL_CHAT_TEAM])))
        {
                send_chat_message(0, id, szMessage, szSound)
        }

and ALLCHAT_SEE_TEAM is 2, from :
Code:

enum
{
        ALLCHAT_NONE = 0,
        ALLCHAT_NO_TEAM,
        ALLCHAT_SEE_TEAM
}


james 007 01-03-2023 12:31

Re: Chat Manager [Admin Prefix & Color Chat]
 
1 Attachment(s)
new const g_szTag[][] = {
"", // Nao Remover
"[Fundador]",
"[Admin]",
"[Mod Geral]",
"[Mod]",
"[Configurador]",
"[Super Vip]",
"[Vip]",
"[Mini Vip]"
}

new const g_iTagFlag[sizeof(g_szTag)] = {
ADMIN_ALL, // Nao Remover
ADMIN_LEVEL_A,
ADMIN_LEVEL_B,
ADMIN_LEVEL_C,
ADMIN_LEVEL_D,
ADMIN_LEVEL_E,
ADMIN_LEVEL_F,
ADMIN_LEVEL_G,
ADMIN_LEVEL_H
}

add in your plugin plz

Qsai Wolf PS 01-28-2023 15:12

Re: Chat Manager [Admin Prefix & Color Chat]
 
I want to add color to my name like

https://i.imgur.com/UPJzvnA.png

I can do it !?

and I don't look for all reply because its a lot :)


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

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