DHUD Team Details (XMAS Edition)

Pluginuri pentru modul AmxModX.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
User avatar
dragonCSX
Membru, skill +1
Membru, skill +1
Posts: 253
Joined: 04 Feb 2017, 17:36
Detinator Steam: Da
CS Status: Scripting AMXX.
Detinator server CS: xmas.legioncs.ro
SteamID: csfweed01
Fond eXtream: 0
Location: Ploiesti
Discord: csfweed01#0001
Has thanked: 4 times
Been thanked: 4 times
Contact:

15 Oct 2021, 17:03

Descriere: DHUD Team Details (arata sus un dhudmessage cu numele echipelor, runde castigate si chestiile de baza) dedicat craciunului.
Totul a plecat de la o nostalgie a mea si de la un server de tip xmas care urmeaza sa apara anul acesta cu ideile mele personale nu doar copy paste bineinteles!

Descarcare:
xmas_score.sma | Afiseaza codul
/* Plugin generated by AMXX-Studio */

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

	
	#pragma semicolon 1

		// --| Credite lui CryWolf pentru 'layout' !!
		// --| Credite lui Askhanar pentru baza plugin-ului 'DHUD Team Detalis' - extreamcs.com
	new const
		PLUGIN_NAME[ ] 		= "Score (XMAS)",
		PLUGIN_AUTHOR[ ]    = "Askhanar + csfweed01",
		PLUGIN_VERSION[ ] 	= "0.1.7";
	
	#define	iTerroRed	255
	#define	iTerroGreen	0
	#define	iTerroBlue	0
	
	#define	iRoundsRed	255
	#define	iRoundsGreen	255
	#define	iRoundsBlue	255
	
	new const
		g_szCts[ ] 	= "SANTA [%02i]                        ",
		g_szTerrorists[ ]	= "                          [%02i] GRINCH",
		g_szRounds[ ]	= "vs^nRound %02i";
		
		
	enum _:iTeamWons
	{
		TERRO,
		CT
	}
	
	new g_iTeamWons[ iTeamWons ];
	new g_iRounds;
				
public plugin_init( )
{
	
	register_plugin( PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR );
	
	
	register_event( "HLTV", "ev_NewRound", "a", "1=0", "2=0" );
	register_event( "TextMsg", "ev_RoundRestart", "a", "2&#Game_C", "2&#Game_w" );
	
	register_event( "SendAudio", "ev_TerroristWin", "a", "2&%!MRAD_terwin" );
	register_event( "SendAudio", "ev_CtWin", "a", "2&%!MRAD_ctwin" );
	
	g_iRounds = 0;
	g_iTeamWons[ TERRO ] = 0;
	g_iTeamWons[ CT ] = 0;
	
	set_task( 1.0, "task_DisplayHudScore", _, _, _, "b", 0 );
	// Add your code here...
}


public ev_NewRound( )	g_iRounds++;
public ev_RoundRestart( )
{
	g_iRounds = 0;
	
	g_iTeamWons[ TERRO ] = 0;
	g_iTeamWons[ CT ] = 0;
}
public ev_TerroristWin( )
{ 	
	g_iTeamWons[ TERRO ]++;
}
public ev_CtWin( )
{	
	g_iTeamWons[ CT ]++;
}

public task_DisplayHudScore( )
{
	
	static iPlayers[ 32 ];
	static iPlayersNum;
		
	get_players( iPlayers, iPlayersNum, "ch" );
	if( !iPlayersNum )
		return;
	
	static szCrap[ 32 ];
	static iTerro, iCt;
	
	get_players( szCrap, iTerro, "aech", "TERRORIST" );
	get_players( szCrap, iCt, "aech", "CT" );
	
	static id, i;
	for( i = 0; i < iPlayersNum; i++ )
	{
		id = iPlayers[ i ];
		
		set_dhudmessage( 0, 70, 247, -1.0, is_user_alive( id ) ? 0.01 : 0.16 , 0, _, 2.0, 1.0, 1.0 );
		show_dhudmessage( id, g_szCts, g_iTeamWons[ CT ] );
		

		set_dhudmessage( iRoundsRed, iRoundsGreen, iRoundsBlue, -1.0, is_user_alive( id ) ? 0.01 : 0.16 , 0, _, 2.0, 1.0, 1.0 );
		show_dhudmessage( id, g_szRounds, g_iRounds);
		
		set_dhudmessage( iTerroRed, iTerroGreen, iTerroBlue, -1.0, is_user_alive( id ) ? 0.01 : 0.16 , 0, _, 2.0, 1.0, 1.0 );
		show_dhudmessage( id, g_szTerrorists, g_iTeamWons[ TERRO ] );				
	}
	
}
Nume: DHUD Team Details (XMAS) - Score (XMAS)
Versiune: 0.1.7 (Askhanar + csfweed01)
Link oficial: pluginuri-extream/dhud-team-details-t239062.html

Instalare:
1. Fisierul xmas_score.sma il puneti in addons/amxmodx/scripting
2. Fisierul xmas_score.amxx il puneti in addons/amxmodx/plugins
3. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma:

Code: Select all

xmas_score.amxx
Imagini:
- Image
- Image
* Optimizat pentru orice rezolutie ca de exemplu 800x600
- Image
(se actualizeaza in functie de runda actuala si rundele castigate de echipele respective)
User avatar
Doctor whO? <3
Membru, skill +3
Membru, skill +3
Posts: 1031
Joined: 21 Jun 2013, 11:40
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Reputatie: Fost Membru Club eXtreamCS (doua luni)
Has thanked: 102 times
Been thanked: 40 times
Contact:

15 Oct 2021, 19:43

Gj nenea. Fa si cv pluginuri pentru halloween 😁
Post Reply

Return to “AmxModX”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests