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)

MarLeo94 10-13-2018 10:31

Re: Chat Manager [Admin Prefix & Color Chat]
 
[ro] -- @MarLeo94
CM_MENU_TITLE = \y[\rManager de chat\y] \wSetările utilizatorului
CM_MENU_PREFIX = Prefix
CM_MENU_CHAT_COLOR = Culoarea chatului
CM_MENU_CUSTOM_NAME = Nume personalizat
CM_MENU_ENABLED = \y[Activat]
CM_MENU_DISABLED = \r[Dezactivat]

[es] -- @MarLeo94
CM_MENU_TITLE = \y[\rGestor de chat\y] \wAjustes de usuario
CM_MENU_PREFIX = Prefijo
CM_MENU_CHAT_COLOR = Color de chat
CM_MENU_CUSTOM_NAME = Nombre personalizado
CM_MENU_ENABLED = \y[Activado]
CM_MENU_DISABLED = \r[Desactivado]

OciXCrom 10-13-2018 13:47

Re: Chat Manager [Admin Prefix & Color Chat]
 
Added, thanks.

Mordekay 01-01-2019 14:08

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

[de]
CM_MENU_TITLE = \y[\rChat Manager\y] \wNutzer Einstellungen
CM_MENU_PREFIX = Namenspräfix
CM_MENU_CHAT_COLOR = Chat Farbe
CM_MENU_CUSTOM_NAME = Benutzerdefinierter Name
CM_MENU_ENABLED = \y[Ein]
CM_MENU_DISABLED = \r[Aus]

German translation

EDIT: do i have to do more than removing the // before the define if i want to show the country-code of players in chat?
The logfile says that the geo-ip file is loaded, but no it does't add anything to chat except the other prefixes.

OciXCrom 01-01-2019 18:29

Re: Chat Manager [Admin Prefix & Color Chat]
 
Added, thanks.

Removing the "//" will only enable the GeoIP placeholders like $city$, $country$, etc. You need to add these placeholders in the [Format Definitions] section in the .ini file in order for them to show in chat.

Mordekay 01-01-2019 19:24

Re: Chat Manager [Admin Prefix & Color Chat]
 
Ah, ok. I think i understand now. Will report if i have problems.

Edit:
Ok, don't know why, but it shows $country$ instead of the country.
Here is the current config for this:
Code:

format_admin = $country$ $dead_prefix$ &x04$admin_prefix$ &x03$custom_name$ &x01: $chat_color$$message$
format_admin_team = $country$ $dead_prefix$ ($team$) &x04$admin_prefix$ &x03$custom_name$ &x01: $chat_color$$message$
format_player = $country$ $dead_prefix$ &x03$custom_name$ &x01: $chat_color$$message$
format_player_team = $country$ $dead_prefix$ ($team$) &x03$custom_name$ &x01: $chat_color$$message$


segru 01-03-2019 15:19

Re: Chat Manager [Admin Prefix & Color Chat]
 
Seems very useful, gonna try installing it and report back!

Mordekay 01-03-2019 15:58

Re: Chat Manager [Admin Prefix & Color Chat]
 
It seems i made an error compiling the plugin, but it shows a question mark instead of the country now. The geo-ip module is loaded.

OciXCrom 01-03-2019 16:02

Re: Chat Manager [Admin Prefix & Color Chat]
 
If you're testing it on a local server, showing a question mark is normal because your IP address is probably local and GeoIP can't determine the country on such address. It should work fine on a public server.

Mordekay 01-03-2019 16:03

Re: Chat Manager [Admin Prefix & Color Chat]
 
It is not a local server, it is my regular public server.

OciXCrom 01-03-2019 18:33

Re: Chat Manager [Admin Prefix & Color Chat]
 
If that's the case, the problem is that GeoIP can't determine where your IP is from. There's nothing that can be done here since it's not the plugin's fault. Some IP addresses will be unknown.


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

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