Chat Manager [Admin Prefix & Color Chat]

Одобрените от нас плъгини. Моля, докладвайте ако забележите бъг с някой от плъгините в този раздел.
Аватар
Ganja_dypb
Извън линия
Foreigner
Foreigner
Мнения: 25
Регистриран на: 16 Мар 2020, 02:20
Се отблагодари: 4 пъти

Chat Manager [Admin Prefix & Color Chat]

Мнение от Ganja_dypb » 15 Апр 2020, 15:24

OciXCrom написа: 15 Апр 2020, 04:16 GeoIP in 1.8.2 has no city detection function. Update the module manually from here - https://forums.alliedmods.net/showthread.php?t=95665
Or simply upgrade to AMXX 1.9 or 1.10.
Where have you been before, thanks for the link to the deer, I did not know that the geo-ip module was updated!
Thank you, that’s how it works!
P.S> it is a pity that the city does not work with this module geo-ip amxx 1.8.2

Аватар
OciXCrom
Извън линия
Администратор
Администратор
Мнения: 7206
Регистриран на: 06 Окт 2016, 19:20
Местоположение: /resetscore
Се отблагодари: 117 пъти
Получена благодарност: 1295 пъти
Обратна връзка:

Chat Manager [Admin Prefix & Color Chat]

Мнение от OciXCrom » 15 Апр 2020, 15:41

It's not important. The GeoIP module in 1.8.2 is outdated. Updating it takes only a few seconds.

Аватар
Ganja_dypb
Извън линия
Foreigner
Foreigner
Мнения: 25
Регистриран на: 16 Мар 2020, 02:20
Се отблагодари: 4 пъти

Chat Manager [Admin Prefix & Color Chat]

Мнение от Ganja_dypb » 16 Апр 2020, 00:43

OciXCrom написа: 15 Апр 2020, 15:41 It's not important. The GeoIP module in 1.8.2 is outdated. Updating it takes only a few seconds.
After updating to 4.5.1, your CMSteamPrefix 1.0 plugin stopped working
The game does not display a prefix [steam] ?
There are no errors and the CMSteamPrefix 1.0 plugin works [running]
Would you kindly help?

Код за потвърждение: Избери целия код

#include <amxmodx>
#include <chatmanager>

#if !defined MAX_PLAYERS
	const MAX_PLAYERS = 32
#endif

#define STEAM_PREFIX "&x04[Steam]"

new bool:g_bIsSteam[MAX_PLAYERS + 1]

public plugin_init()
{
	register_plugin("CM: Steam Prefix", "1.0", "OciXCrom")
}

public client_authorized(id)
{
	g_bIsSteam[id] = is_user_steam(id)

	if(g_bIsSteam[id])
	{
		cm_on_player_data_updated(id)
	}
}

public cm_on_player_data_updated(id)
{
	if(g_bIsSteam[id])
	{
		cm_set_user_prefix(id, STEAM_PREFIX)
	}
}

bool:is_user_steam(id)
{
	static iPointer

	if(iPointer || (iPointer = get_cvar_pointer("dp_r_id_provider")))
	{
		server_cmd("dp_clientinfo %d", id)
		server_exec()

		return get_pcvar_num(iPointer) == 2
	}

	return false
}
Added in 1 hour 38 minutes 39 seconds:
As a result, the steam prefix works if top30 is disabled (CMTop30RankPrefix.amxx).
And it also works with the display of the [vip] prefix if the [steam] plugin is disabled.
I repeat there are no errors, I tried to change plugins in places in plugins.ini did not help, together there is a failure in displaying prefixes!
► Покажи скъсения текст

Аватар
OciXCrom
Извън линия
Администратор
Администратор
Мнения: 7206
Регистриран на: 06 Окт 2016, 19:20
Местоположение: /resetscore
Се отблагодари: 117 пъти
Получена благодарност: 1295 пъти
Обратна връзка:

Chat Manager [Admin Prefix & Color Chat]

Мнение от OciXCrom » 16 Апр 2020, 15:10

Try moving the plugins around in plugins.ini. Probably put the STEAM prefix one below the TOP prefix. I'll add an option in the main plugin to set prefixes based on part of the name/IP/SteamID being present, rather than the entire thing being equal. This way you'll be able to set the prefix without a sub-plugin and nobody will complain about non-steam support.

Аватар
Ganja_dypb
Извън линия
Foreigner
Foreigner
Мнения: 25
Регистриран на: 16 Мар 2020, 02:20
Се отблагодари: 4 пъти

Chat Manager [Admin Prefix & Color Chat]

Мнение от Ganja_dypb » 16 Апр 2020, 18:21

plugins.ini
► Покажи скъсения текст
didn’t the plugin placement help, or will you add a plugin "crx_chatmanager" update in the future?

Аватар
OciXCrom
Извън линия
Администратор
Администратор
Мнения: 7206
Регистриран на: 06 Окт 2016, 19:20
Местоположение: /resetscore
Се отблагодари: 117 пъти
Получена благодарност: 1295 пъти
Обратна връзка:

Chat Manager [Admin Prefix & Color Chat]

Мнение от OciXCrom » 16 Апр 2020, 20:46

Yes, I probably will. For now, I can combine those 2 sub-plugins so they can work better. Do you want to display the STEAM prefix or the TOP prefix if both are available?

Аватар
Ganja_dypb
Извън линия
Foreigner
Foreigner
Мнения: 25
Регистриран на: 16 Мар 2020, 02:20
Се отблагодари: 4 пъти

Chat Manager [Admin Prefix & Color Chat]

Мнение от Ganja_dypb » 16 Апр 2020, 21:09

I would like it to work like this: [countri][top30] [STEAM] [vip] [DEAD] player_name: messages
plugins.ini
► Покажи скъсения текст
only works like that: [countri][STEAM][DEAD] player_name: messages
there is no display of the prefix top30 and VIP.
If you disable the Steam plugin, it only works:
[country][top30][dead]player_name: messages, no vip?
if so, then everything works
crx_chatmanager.amxx only works like that:[country][vip][dead] player_name: messages
How to combine all these plugins to get: [countri][top30] [STEAM] [vip] [DEAD] player_name: messages
Последно промяна от Ganja_dypb на 16 Апр 2020, 21:19, променено общо 1 път.

Аватар
Hyper
Извън линия
Потребител
Потребител
Мнения: 20
Регистриран на: 11 Фев 2020, 14:28
Местоположение: London
Се отблагодари: 1 път
Получена благодарност: 11 пъти

Chat Manager [Admin Prefix & Color Chat]

Мнение от Hyper » 16 Апр 2020, 21:13

Възможно ли е да се направи проверка дали даден играч е simon и да се добави префикс? Използвам редакктираната версия на хрома за главен плъгин на JB.
bruh..

Аватар
OciXCrom
Извън линия
Администратор
Администратор
Мнения: 7206
Регистриран на: 06 Окт 2016, 19:20
Местоположение: /resetscore
Се отблагодари: 117 пъти
Получена благодарност: 1295 пъти
Обратна връзка:

Chat Manager [Admin Prefix & Color Chat]

Мнение от OciXCrom » 16 Апр 2020, 21:19

Hyper написа: 16 Апр 2020, 21:13 Възможно ли е да се направи проверка дали даден играч е simon и да се добави префикс? Използвам редакктираната версия на хрома за главен плъгин на JB.

Код за потвърждение: Избери целия код

#include <amxmodx>
#include <chatmanager>
#include <jbextreme-crx>

new const PLUGIN_VERSION[] = "1.0"

#define SIMON_PREFIX "[SIMON]"

public plugin_init()
{
	register_plugin("Chat Manager: Simon Prefix", PLUGIN_VERSION, "OciXCrom")
	register_cvar("CRXCMSimon", PLUGIN_VERSION, FCVAR_SERVER|FCVAR_SPONLY|FCVAR_UNLOGGED)
}

public cm_on_player_data_updated(id)
{
	if(is_user_simon(id))
	{
		cm_set_user_prefix(id, SIMON_PREFIX)
	}
}

Аватар
Ganja_dypb
Извън линия
Foreigner
Foreigner
Мнения: 25
Регистриран на: 16 Мар 2020, 02:20
Се отблагодари: 4 пъти

Chat Manager [Admin Prefix & Color Chat]

Мнение от Ganja_dypb » 16 Апр 2020, 21:21

How to combine all these plugins to get: [countri][top30] [STEAM] [vip] [DEAD] player_name: messages ?

Публикувай отговор
  • Подобни теми
    Отговори
    Преглеждания
     Последно мнение

Обратно към “Одобрени плъгини”

Кой е на линия

Потребители разглеждащи този форум: 0 регистрирани и 13 госта