Descriere:
Acest plugin 'exista' deja dar pentru ca a fost cerut aici am facut unul al meu +o functie noua.
As fi putut posta toate lucrurile astea in Furien Score and Round dat nu se potriveste pentru ca aici am 5 variante diferite..
Nume: DHUD Team Details
Versiune: 0.1.7
Link oficial: http://www.extreamcs.com/forum
Instalare:
Instalarea se face lafel ca la oricare alt plugin.
Nu am mai adaugat pasi pentru ca nu am postat un singur plugin ci 5.
Descarcare:
- DHUD Team Details -> Server Clasic | 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' !! new const PLUGIN_NAME[ ] = "DHUD Team Details", PLUGIN_VERSION[ ] = "0.1.7"; /* Copyright (c) 2013 Askhanar @eXtreamCS.com http://www.eXtreamCS.com/forum http://www.amxmodx.org http://www.amxmodx.ro */ // --| Culorile in RRR GGG BBB ( poate fi luata si in paint ). #define iTerroRed 255 #define iTerroGreen 0 #define iTerroBlue 0 #define iCtRed 0 #define iCtGreen 0 #define iCtBlue 255 #define iRoundsRed 255 #define iRoundsGreen 255 #define iRoundsBlue 255 #define iLastWonRed 255 #define iLastWonGreen 255 #define iLastWonBlue 0 new const g_szCts[ ] = "^t^t Ct-Strike %02i", g_szTerrorists[ ] = "^t^t%02i Terrorists", g_szRounds[ ] = "[ %02i ]^n%02i Wins %02i"; enum _:iTeamWons { TERRO, CT } new g_iTeamWons[ iTeamWons ]; new g_iRounds; new g_iLastWon; public plugin_init( ) { register_plugin( PLUGIN_NAME, PLUGIN_VERSION, "Askhanar" ); 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; g_iLastWon = -1; set_task( 1.0, "task_DisplayHudScore", _, _, _, "b", 0 ); // Add your code here... } public ev_NewRound( ) g_iRounds++; public ev_RoundRestart( ) { g_iLastWon = -1; g_iRounds = 0; g_iTeamWons[ TERRO ] = 0; g_iTeamWons[ CT ] = 0; } public ev_TerroristWin( ) { g_iLastWon = TERRO; g_iTeamWons[ TERRO ]++; } public ev_CtWin( ) { g_iLastWon = CT; 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( iCtRed, iCtGreen, iCtBlue, 0.30, is_user_alive( id ) ? 0.01 : 0.16 , 0, _, 2.0, 1.0, 1.0 ); show_dhudmessage( id, g_szCts, iCt ); 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, g_iTeamWons[ CT ], g_iTeamWons[ TERRO ] ); set_dhudmessage( iTerroRed, iTerroGreen, iTerroBlue, 0.51, is_user_alive( id ) ? 0.01 : 0.16 , 0, _, 2.0, 1.0, 1.0 ); show_dhudmessage( id, g_szTerrorists, iTerro ); if( g_iLastWon != -1 ) { switch( g_iLastWon ) { case TERRO: { set_dhudmessage( iLastWonRed, iLastWonGreen, iLastWonBlue, 0.58, is_user_alive( id ) ? 0.01 : 0.16 , 0, _, 2.0, 1.0, 1.0 ); show_dhudmessage( id, "^n>" ); } case CT: { set_dhudmessage( iLastWonRed, iLastWonGreen, iLastWonBlue, 0.41, is_user_alive( id ) ? 0.01 : 0.16 , 0, _, 2.0, 1.0, 1.0 ); show_dhudmessage( id, "^n<" ); } } } } }
- Screen | Afiseaza codul
- DHUD Team Details Server Furien | 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' !! new const PLUGIN_NAME[ ] = "DHUD Team Details", PLUGIN_VERSION[ ] = "0.1.7"; /* Copyright (c) 2013 Askhanar @eXtreamCS.com http://www.eXtreamCS.com/forum http://www.amxmodx.org http://www.amxmodx.ro */ // --| Culorile in RRR GGG BBB ( poate fi luata si in paint ). #define iFuriensRed 255 #define iFuriensGreen 0 #define iFuriensBlue 0 #define iAntiFuriensRed 0 #define iAntiFuriensGreen 0 #define iAntiFuriensBlue 255 #define iRoundsRed 255 #define iRoundsGreen 255 #define iRoundsBlue 255 #define iLastWonRed 255 #define iLastWonGreen 255 #define iLastWonBlue 0 new const g_szAntiFuriens[ ] = "^t^t AntiFuriens %02i", g_szFuriens[ ] = "^t^t%02i Furiens", g_szRounds[ ] = "[ %02i ]^n%02i Wins %02i"; enum _:iTeamWons { FURIENS, ANTIFURIENS } new g_iTeamWons[ iTeamWons ]; new g_iRounds; new g_iLastWon; public plugin_init( ) { register_plugin( PLUGIN_NAME, PLUGIN_VERSION, "Askhanar" ); 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[ FURIENS ] = 0; g_iTeamWons[ ANTIFURIENS ] = 0; g_iLastWon = -1; set_task( 1.0, "task_DisplayHudScore", _, _, _, "b", 0 ); // Add your code here... } public ev_NewRound( ) g_iRounds++; public ev_RoundRestart( ) { g_iLastWon = -1; g_iRounds = 0; g_iTeamWons[ FURIENS ] = 0; g_iTeamWons[ ANTIFURIENS ] = 0; } public ev_TerroristWin( ) { g_iLastWon = FURIENS; g_iTeamWons[ FURIENS ]++; } public ev_CtWin( ) { g_iLastWon = ANTIFURIENS; g_iTeamWons[ ANTIFURIENS ]++; } public task_DisplayHudScore( ) { static iPlayers[ 32 ]; static iPlayersNum; get_players( iPlayers, iPlayersNum, "ch" ); if( !iPlayersNum ) return; static szCrap[ 32 ]; static iFuriens, iAntiFuriens; get_players( szCrap, iFuriens, "aech", "TERRORIST" ); get_players( szCrap, iAntiFuriens, "aech", "CT" ); static id, i; for( i = 0; i < iPlayersNum; i++ ) { id = iPlayers[ i ]; set_dhudmessage( iAntiFuriensRed, iAntiFuriensGreen, iAntiFuriensBlue, 0.33, is_user_alive( id ) ? 0.01 : 0.16 , 0, _, 2.0, 1.0, 1.0 ); show_dhudmessage( id, g_szAntiFuriens, iAntiFuriens ); 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, g_iTeamWons[ ANTIFURIENS ], g_iTeamWons[ FURIENS ] ); set_dhudmessage( iFuriensRed, iFuriensGreen, iFuriensBlue, 0.51, is_user_alive( id ) ? 0.01 : 0.16 , 0, _, 2.0, 1.0, 1.0 ); show_dhudmessage( id, g_szFuriens, iFuriens ); if( g_iLastWon != -1 ) { switch( g_iLastWon ) { case FURIENS: { set_dhudmessage( iLastWonRed, iLastWonGreen, iLastWonBlue, 0.58, is_user_alive( id ) ? 0.01 : 0.16 , 0, _, 2.0, 1.0, 1.0 ); show_dhudmessage( id, "^n>" ); } case ANTIFURIENS: { set_dhudmessage( iLastWonRed, iLastWonGreen, iLastWonBlue, 0.41, is_user_alive( id ) ? 0.01 : 0.16 , 0, _, 2.0, 1.0, 1.0 ); show_dhudmessage( id, "^n<" ); } } } } }
- Screen | Afiseaza codul
- DHUD Team Details Server HNS | 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' !! new const PLUGIN_NAME[ ] = "DHUD Team Details", PLUGIN_VERSION[ ] = "0.1.7"; /* Copyright (c) 2013 Askhanar @eXtreamCS.com http://www.eXtreamCS.com/forum http://www.amxmodx.org http://www.amxmodx.ro */ // --| Culorile in RRR GGG BBB ( poate fi luata si in paint ). #define iHidersRed 255 #define iHidersGreen 0 #define iHidersBlue 0 #define iSeekersRed 0 #define iSeekersGreen 0 #define iSeekersBlue 255 #define iRoundsRed 255 #define iRoundsGreen 255 #define iRoundsBlue 255 #define iLastWonRed 255 #define iLastWonGreen 255 #define iLastWonBlue 0 new const g_szSeekers[ ] = "^t^t^tSeekers %02i", g_szHiders[ ] = "^t^t%02i Hiders", g_szRounds[ ] = "[ %02i ]^n%02i Wins %02i"; enum _:iTeamWons { HIDERS, SEEKERS } new g_iTeamWons[ iTeamWons ]; new g_iRounds; new g_iLastWon; public plugin_init( ) { register_plugin( PLUGIN_NAME, PLUGIN_VERSION, "Askhanar" ); 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[ HIDERS ] = 0; g_iTeamWons[ SEEKERS ] = 0; g_iLastWon = -1; set_task( 1.0, "task_DisplayHudScore", _, _, _, "b", 0 ); // Add your code here... } public ev_NewRound( ) g_iRounds++; public ev_RoundRestart( ) { g_iLastWon = -1; g_iRounds = 0; g_iTeamWons[ HIDERS ] = 0; g_iTeamWons[ SEEKERS ] = 0; } public ev_TerroristWin( ) { g_iLastWon = HIDERS; g_iTeamWons[ HIDERS ]++; } public ev_CtWin( ) { g_iLastWon = SEEKERS; g_iTeamWons[ SEEKERS ]++; } public task_DisplayHudScore( ) { static iPlayers[ 32 ]; static iPlayersNum; get_players( iPlayers, iPlayersNum, "ch" ); if( !iPlayersNum ) return; static szCrap[ 32 ]; static iHiders, iSeekers; get_players( szCrap, iHiders, "aech", "TERRORIST" ); get_players( szCrap, iSeekers, "aech", "CT" ); static id, i; for( i = 0; i < iPlayersNum; i++ ) { id = iPlayers[ i ]; set_dhudmessage( iSeekersRed, iSeekersGreen, iSeekersBlue, 0.31, is_user_alive( id ) ? 0.01 : 0.16 , 0, _, 2.0, 1.0, 1.0 ); show_dhudmessage( id, g_szSeekers, iSeekers ); 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, g_iTeamWons[ SEEKERS ], g_iTeamWons[ HIDERS ] ); set_dhudmessage( iHidersRed, iHidersGreen, iHidersBlue, 0.51, is_user_alive( id ) ? 0.01 : 0.16 , 0, _, 2.0, 1.0, 1.0 ); show_dhudmessage( id, g_szHiders, iHiders ); if( g_iLastWon != -1 ) { switch( g_iLastWon ) { case HIDERS: { set_dhudmessage( iLastWonRed, iLastWonGreen, iLastWonBlue, 0.58, is_user_alive( id ) ? 0.01 : 0.16 , 0, _, 2.0, 1.0, 1.0 ); show_dhudmessage( id, "^n>" ); } case SEEKERS: { set_dhudmessage( iLastWonRed, iLastWonGreen, iLastWonBlue, 0.41, is_user_alive( id ) ? 0.01 : 0.16 , 0, _, 2.0, 1.0, 1.0 ); show_dhudmessage( id, "^n<" ); } } } } }
- Screen | Afiseaza codul
- DHUD Team Details Server ZP | Afiseaza codul
/* Plugin generated by AMXX-Studio */ #include < amxmodx > #if AMXX_VERSION_NUM < 183 #include < dhudmessage > #endif #include < zombieplague > #pragma semicolon 1 // --| Credite lui CryWolf pentru 'layout' !! new const PLUGIN_NAME[ ] = "DHUD Team Details", PLUGIN_VERSION[ ] = "0.1.7"; /* Copyright (c) 2013 Askhanar @eXtreamCS.com http://www.eXtreamCS.com/forum http://www.amxmodx.org http://www.amxmodx.ro */ // --| Culorile in RRR GGG BBB ( poate fi luata si in paint ). #define iZombiesRed 255 #define iZombiesGreen 0 #define iZombiesBlue 0 #define iHumansRed 0 #define iHumansGreen 0 #define iHumansBlue 255 #define iRoundsRed 255 #define iRoundsGreen 255 #define iRoundsBlue 255 #define iLastWonRed 255 #define iLastWonGreen 255 #define iLastWonBlue 0 new const g_szHumans[ ] = "^t^tHumans %02i", g_szZombies[ ] = "^t^t%02i Zombies", g_szRounds[ ] = "[ %02i ]^n%02i Wins %02i"; enum _:iTeamWons { ZOMBIES, HUMANS } new g_iTeamWons[ iTeamWons ]; new g_iRounds; new g_iLastWon; public plugin_init( ) { register_plugin( PLUGIN_NAME, PLUGIN_VERSION, "Askhanar" ); register_event( "TextMsg", "ev_RoundRestart", "a", "2&#Game_C", "2&#Game_w" ); g_iRounds = 0; g_iTeamWons[ ZOMBIES ] = 0; g_iTeamWons[ HUMANS ] = 0; g_iLastWon = -1; set_task( 1.0, "task_DisplayHudScore", _, _, _, "b", 0 ); // Add your code here... } public zp_round_started( ) g_iRounds++; public ev_RoundRestart( ) { g_iLastWon = -1; g_iRounds = 0; g_iTeamWons[ ZOMBIES ] = 0; g_iTeamWons[ HUMANS ] = 0; } public zp_round_ended( iWinTeam ) { switch( iWinTeam ) { case ZOMBIES: { g_iLastWon = ZOMBIES; g_iTeamWons[ ZOMBIES ]++; } case HUMANS: { g_iLastWon = HUMANS; g_iTeamWons[ HUMANS ]++; } default: return; } } public task_DisplayHudScore( ) { static iPlayers[ 32 ]; static iPlayersNum; get_players( iPlayers, iPlayersNum, "ch" ); if( !iPlayersNum ) return; static id, i; for( i = 0; i < iPlayersNum; i++ ) { id = iPlayers[ i ]; set_dhudmessage( iHumansRed, iHumansGreen, iHumansBlue, 0.32, is_user_alive( id ) ? 0.01 : 0.16 , 0, _, 2.0, 1.0, 1.0 ); show_dhudmessage( id, g_szHumans, zp_get_human_count( ) ); 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, g_iTeamWons[ HUMANS ], g_iTeamWons[ ZOMBIES ] ); set_dhudmessage( iZombiesRed, iZombiesGreen, iZombiesBlue, 0.51, is_user_alive( id ) ? 0.01 : 0.16 , 0, _, 2.0, 1.0, 1.0 ); show_dhudmessage( id, g_szZombies, zp_get_zombie_count() ); if( g_iLastWon != -1 ) { switch( g_iLastWon ) { case ZOMBIES: { set_dhudmessage( iLastWonRed, iLastWonGreen, iLastWonBlue, 0.58, is_user_alive( id ) ? 0.01 : 0.16 , 0, _, 2.0, 1.0, 1.0 ); show_dhudmessage( id, "^n>" ); } case HUMANS: { set_dhudmessage( iLastWonRed, iLastWonGreen, iLastWonBlue, 0.41, is_user_alive( id ) ? 0.01 : 0.16 , 0, _, 2.0, 1.0, 1.0 ); show_dhudmessage( id, "^n<" ); } } } } }
- Screen | Afiseaza codul
- DHUD Team Details Server BB | 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' !! new const PLUGIN_NAME[ ] = "DHUD Team Details", PLUGIN_VERSION[ ] = "0.1.7"; /* Copyright (c) 2013 Askhanar @eXtreamCS.com http://www.eXtreamCS.com/forum http://www.amxmodx.org http://www.amxmodx.ro */ // --| Culorile in RRR GGG BBB ( poate fi luata si in paint ). #define iZombiesRed 255 #define iZombiesGreen 0 #define iZombiesBlue 0 #define iBuildersRed 0 #define iBuildersGreen 0 #define iBuildersBlue 255 #define iRoundsRed 255 #define iRoundsGreen 255 #define iRoundsBlue 255 #define iLastWonRed 255 #define iLastWonGreen 255 #define iLastWonBlue 0 new const g_szBuilders[ ] = "^t^t^tBuilders %02i", g_szZombies[ ] = "^t^t%02i Zombies", g_szRounds[ ] = "[ %02i ]^n%02i Wins %02i"; enum _:iTeamWons { ZOMBIES, BUILDERS } new g_iTeamWons[ iTeamWons ]; new g_iRounds; new g_iLastWon; public plugin_init( ) { register_plugin( PLUGIN_NAME, PLUGIN_VERSION, "Askhanar" ); 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[ ZOMBIES ] = 0; g_iTeamWons[ BUILDERS ] = 0; g_iLastWon = -1; set_task( 1.0, "task_DisplayHudScore", _, _, _, "b", 0 ); // Add your code here... } public ev_NewRound( ) g_iRounds++; public ev_RoundRestart( ) { g_iLastWon = -1; g_iRounds = 0; g_iTeamWons[ ZOMBIES ] = 0; g_iTeamWons[ BUILDERS ] = 0; } public ev_TerroristWin( ) { g_iLastWon = ZOMBIES; g_iTeamWons[ ZOMBIES ]++; } public ev_CtWin( ) { g_iLastWon = BUILDERS; g_iTeamWons[ BUILDERS ]++; } public task_DisplayHudScore( ) { static iPlayers[ 32 ]; static iPlayersNum; get_players( iPlayers, iPlayersNum, "ch" ); if( !iPlayersNum ) return; static szCrap[ 32 ]; static iZombies, iBuilders; get_players( szCrap, iZombies, "aech", "TERRORIST" ); get_players( szCrap, iBuilders, "aech", "CT" ); static id, i; for( i = 0; i < iPlayersNum; i++ ) { id = iPlayers[ i ]; set_dhudmessage( iBuildersRed, iBuildersGreen, iBuildersBlue, 0.30, is_user_alive( id ) ? 0.01 : 0.16 , 0, _, 2.0, 1.0, 1.0 ); show_dhudmessage( id, g_szBuilders, iBuilders ); 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, g_iTeamWons[ BUILDERS ], g_iTeamWons[ ZOMBIES ] ); set_dhudmessage( iZombiesRed, iZombiesGreen, iZombiesBlue, 0.51, is_user_alive( id ) ? 0.01 : 0.16 , 0, _, 2.0, 1.0, 1.0 ); show_dhudmessage( id, g_szZombies, iZombies ); if( g_iLastWon != -1 ) { switch( g_iLastWon ) { case ZOMBIES: { set_dhudmessage( iLastWonRed, iLastWonGreen, iLastWonBlue, 0.58, is_user_alive( id ) ? 0.01 : 0.16 , 0, _, 2.0, 1.0, 1.0 ); show_dhudmessage( id, "^n>" ); } case BUILDERS: { set_dhudmessage( iLastWonRed, iLastWonGreen, iLastWonBlue, 0.41, is_user_alive( id ) ? 0.01 : 0.16 , 0, _, 2.0, 1.0, 1.0 ); show_dhudmessage( id, "^n<" ); } } } } }
- Screen | Afiseaza codul
Probabil va intrebati ce semnifica toate cifrele alea..
- aici e raspunsul! | Afiseaza codul
Nota:
Tin sa mentionez ca nu mi-a fost usor sa pozitionez fiecare cuvant si ca nu ma vait dar am dat in jur de 20 RR la server pentru fiecare plugin.
Modificari:
05.02.2019 - Lux0R^ : adaugat support amxx 1.8.3(1.9.0)+