Chat Manager [Admin Prefix & Color Chat]

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

Chat Manager [Admin Prefix & Color Chat]

Мнение от Ganja_dypb » 24 Мар 2021, 17:11

OciXCrom написа: 23 Мар 2021, 02:47 What other plugins and other chat prefixes?
Извън темата

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

#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
}

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

#include <amxmodx>
#include <chatmanager>
#include <csstats>

const TOP_RANK = 30
#define TOP_PREFIX "&x04[Top%i]"

public plugin_init()
{
	register_plugin("CM: Top Prefix", "1.1", "OciXCrom")
}

public cm_on_player_data_updated(id)
{
	static szRank[32], iStats[8], iHits[8]
	get_user_stats(id, iStats, iHits)

	if(iStats[7] <= TOP_RANK)
	{
		formatex(szRank, charsmax(szRank), TOP_PREFIX, iStats[7])
		cm_set_user_prefix(id, szRank)
	}
}
here are your plugins. There is a conflict with the chatmanager on prefixes!
If they work together, then the prefix only shows: [$countr$][Top5]: Message, it is not displayed [steam][$admin_prefix$]
If you disable Steam and Top plugins, the chatmanager displays: [$countr$][$admin_prefix$]: Message
Another error in the logs!

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

L 03/22/2021 - 22:33:06: Start of error session.
L 03/22/2021 - 22:33:06: Info (map "$2000$") (file "addons/amxmodx/logs/error_20210322.log")
L 03/22/2021 - 22:33:06: replace() buffer not big enough (119>=97)
L 03/22/2021 - 22:33:06: [AMXX] Run time error 10 (plugin "crx_chatmanager4.8.amxx") (native "replace") - debug not enabled!
L 03/22/2021 - 22:33:06: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).

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

Chat Manager [Admin Prefix & Color Chat]

Мнение от OciXCrom » 24 Мар 2021, 20:44

I don't see a problem. Both plugins replace the player's prefix, so of course they won't work together when they do the same thing.
I need to update the main plugin and add an option to apply custom keywords and replacements with the API.

About the error - the easiest solution is upgrading your AMXX. The "replace" function in 1.8.2 is just bad.

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

Chat Manager [Admin Prefix & Color Chat]

Мнение от Ganja_dypb » 25 Мар 2021, 00:00

OciXCrom написа: 24 Мар 2021, 20:44 I don't see a problem. Both plugins replace the player's prefix, so of course they won't work together when they do the same thing.
I need to update the main plugin and add an option to apply custom keywords and replacements with the API.
About the error - the easiest solution is upgrading your AMXX. The "replace" function in 1.8.2 is just bad.
I understand you, I really would like these plugins to work with the update!
thanks for your hard work!

Аватар
DrHesperus
Извън линия
Foreigner
Foreigner
Мнения: 16
Регистриран на: 01 Апр 2021, 19:01
Местоположение: Екатеринбург
Се отблагодари: 2 пъти
Обратна връзка:

Chat Manager [Admin Prefix & Color Chat]

Мнение от DrHesperus » 06 Апр 2021, 18:14

ReGameDLL и ReApi обновлены, но плагин всё равно показывает #Spec_PlayerItem

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

Chat Manager [Admin Prefix & Color Chat]

Мнение от OciXCrom » 06 Апр 2021, 20:21

This is not a problem from the plugin.

Аватар
DrHesperus
Извън линия
Foreigner
Foreigner
Мнения: 16
Регистриран на: 01 Апр 2021, 19:01
Местоположение: Екатеринбург
Се отблагодари: 2 пъти
Обратна връзка:

Chat Manager [Admin Prefix & Color Chat]

Мнение от DrHesperus » 07 Апр 2021, 00:29

Не вижу смысла использовать плагин чата и званий, раз они не совместимы

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

Chat Manager [Admin Prefix & Color Chat]

Мнение от OciXCrom » 07 Апр 2021, 00:43

You keep writing nonsense without checking the facts. Chat Manager and Rank System are FULLY COMPATIBLE. Read the plugin description in both the thread and the .ini file to learn how to set them up.

Аватар
bustA
Извън линия
Потребител
Потребител
Мнения: 264
Регистриран на: 20 Юни 2020, 11:47
Се отблагодари: 42 пъти
Получена благодарност: 27 пъти
Обратна връзка:

Chat Manager [Admin Prefix & Color Chat]

Мнение от bustA » 18 Апр 2021, 15:13

Нормално ли е като си изключиш префикса от /cm, след смяната на картата отново да е активен?
Cs-Plovdiv.com - Aim Attack - 93.123.16.4:27022 :gamer1:

Аватар
hackera457
Извън линия
Модератор
Модератор
Мнения: 768
Регистриран на: 01 Ное 2016, 09:46
Местоположение: София
Се отблагодари: 1 път
Получена благодарност: 124 пъти
Обратна връзка:

Chat Manager [Admin Prefix & Color Chat]

Мнение от hackera457 » 18 Апр 2021, 15:16

bustA написа: 18 Апр 2021, 15:13 Нормално ли е като си изключиш префикса от /cm, след смяната на картата отново да е активен?
Да, защото при смяна на картата става нова инициализация на плъгина, и ти като си изключил опцията се пази до края на картата
Моите плъгини

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

#include <hambeer>

RegisterHamBeer(HamBeer_Spawn, "player", "GivePlayerBeer", 1);

public GivePlayerBeer(Pl){
    if(!is_user_alive(Pl)){
        ham_give_beer(Pl, 5)
        client_print(Pl, print_chat, "Go Go Go"){
}  


Аватар
DrHesperus
Извън линия
Foreigner
Foreigner
Мнения: 16
Регистриран на: 01 Апр 2021, 19:01
Местоположение: Екатеринбург
Се отблагодари: 2 пъти
Обратна връзка:

Chat Manager [Admin Prefix & Color Chat]

Мнение от DrHesperus » 19 Апр 2021, 15:15

OciXCrom написа: 07 Апр 2021, 00:43 You keep writing nonsense without checking the facts. Chat Manager and Rank System are FULLY COMPATIBLE. Read the plugin description in both the thread and the .ini file to learn how to set them up.
Обновление ReHLDS \ ReGameDLL \ ReApi по началу создали некоторые проблемы на сервере, но после переустановки сервера Ваши плагины заработали должным образом. :cool:

Было бы не плохо добавить в плагин Блокировку слов в чате, например connect и другие :o

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

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

Кой е на линия

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