Win Message Problem Audio

В този раздел можете да подавате всякакви заявки за намиране, изработка или преработка на плъгини/модове.
Аватар
lantimilan
Извън линия
Foreigner
Foreigner
Мнения: 424
Регистриран на: 29 Ное 2017, 22:49
Се отблагодари: 31 пъти
Получена благодарност: 3 пъти

Win Message Problem Audio

Мнение от lantimilan » 17 Мар 2019, 18:40

Hello i see one plugin its very good for person who cant finish game if cant help hostage and for c4, but when i set this plugin working good but i have problem again show message in yellow Counter Terrorist win, i want to edit in this plugin audi when win ct and t and to set just this hud in center with ?

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

#include <amxmodx>
#if AMXX_VERSION_NUM < 183
	#include <dhudmessage>
#endif

new g_iWinTeam;

public plugin_init()
{
	register_plugin("SlayNoobs", "1.0", "neygomon");

	register_event("TextMsg", "TTwin", "a", "2=#Target_Bombed");		// de_ maps
	register_event("TextMsg", "CTwin", "a", "2=#Target_Saved");		// de_ maps
	register_event("TextMsg", "TTwin", "a", "2=#Hostages_Not_Rescued");	// cs_ maps
	register_event("TextMsg", "CTwin", "a", "2=#All_Hostages_Rescued");	// cs_ maps
	
	register_logevent("RoundEnded", 2, "1=Round_End");
}

public TTwin() g_iWinTeam = 1;
public CTwin() g_iWinTeam = 2;
	
public RoundEnded()
{
	new players[32], pnum;
	switch(g_iWinTeam)
	{
		case 1:
		{
			get_players(players, pnum, "ae", "CT");
			set_dhudmessage(0, 0, 200, -1.0, 0.3, 0, 6.0, 12.0, _, _, -1);
			show_dhudmessage(0, "POLICET FITUAN, SUKSESE TERRORISTEVE HEREN TJETER.");
		}
		case 2:
		{
			get_players(players, pnum, "ae", "TERRORIST");
			set_dhudmessage(200, 0, 0, -1.0, 0.3, 0, 6.0, 12.0, _, _, -1);
			show_dhudmessage(0, "TERRORISTET FITUAN, SUKSESE POLICEVE HEREN TJETER.");
		}
		default: return;
	}
	for(new i; i < pnum; i++) user_kill(players[i], 1);
	g_iWinTeam = 0;
}

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

Win Message Problem Audio

Мнение от OciXCrom » 17 Мар 2019, 21:05

You can use this - https://www.amxx-bg.info/forum/viewtopic.php?f=21&t=69
It allows you to fully customize any in-game default messages, including the ones you have in this plugin.

Аватар
lantimilan
Извън линия
Foreigner
Foreigner
Мнения: 424
Регистриран на: 29 Ное 2017, 22:49
Се отблагодари: 31 пъти
Получена благодарност: 3 пъти

Win Message Problem Audio

Мнение от lantimilan » 17 Мар 2019, 22:44

Thanks OciXCrom its hard to attack code to slay players who cant finish mission in your plugin ?

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

Win Message Problem Audio

Мнение от OciXCrom » 18 Мар 2019, 14:04

Slaying losers is not in any way related to a plugin for messages and sounds. There's no point in combining those 2 in one plugin. Simply use the code you used until now, but remove the messages from it:

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

#include <amxmodx>
#if AMXX_VERSION_NUM < 183
	#include <dhudmessage>
#endif

new g_iWinTeam;

public plugin_init()
{
	register_plugin("SlayNoobs", "1.0", "neygomon");

	register_event("TextMsg", "TTwin", "a", "2=#Target_Bombed");		// de_ maps
	register_event("TextMsg", "CTwin", "a", "2=#Target_Saved");		// de_ maps
	register_event("TextMsg", "TTwin", "a", "2=#Hostages_Not_Rescued");	// cs_ maps
	register_event("TextMsg", "CTwin", "a", "2=#All_Hostages_Rescued");	// cs_ maps
	
	register_logevent("RoundEnded", 2, "1=Round_End");
}

public TTwin() g_iWinTeam = 1;
public CTwin() g_iWinTeam = 2;
	
public RoundEnded()
{
	new players[32], pnum;
	switch(g_iWinTeam)
	{
		case 1:
		{
			get_players(players, pnum, "ae", "CT");
			//set_dhudmessage(0, 0, 200, -1.0, 0.3, 0, 6.0, 12.0, _, _, -1);
			//show_dhudmessage(0, "POLICET FITUAN, SUKSESE TERRORISTEVE HEREN TJETER.");
		}
		case 2:
		{
			get_players(players, pnum, "ae", "TERRORIST");
			//set_dhudmessage(200, 0, 0, -1.0, 0.3, 0, 6.0, 12.0, _, _, -1);
			//show_dhudmessage(0, "TERRORISTET FITUAN, SUKSESE POLICEVE HEREN TJETER.");
		}
		default: return;
	}
	for(new i; i < pnum; i++) user_kill(players[i], 1);
	g_iWinTeam = 0;
}

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

Обратно към “Заявки за плъгини”

Кой е на линия

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