Hud score

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Post Reply
Kpone
Membru, skill 0
Membru, skill 0
Posts: 47
Joined: 16 May 2016, 19:19
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Contact:

16 Apr 2019, 05:54

Salut baieti,am si eu o cerinta sa ii spun asa daca se poate la care vrea sa ma ajute..As vrea si eu acest plugin va rog frumos exact cum este imagine dar daca se poate si sursa lui sa pot modifoca culorile daca este cazul.Image Am gasit ceva postat pe internet tot aici in comunitate dar nu pot compila pluginul.Multumesc frumos baieti.
Olium
User avatar
1TAP GOD
Membru, skill 0
Membru, skill 0
Posts: 48
Joined: 02 Sep 2018, 23:20
Detinator Steam: Da
CS Status: Be The Best And Fuck The Rest
SteamID: assasinssmdfk
Fond eXtream: 0
Been thanked: 1 time
Contact:

16 Apr 2019, 06:38

Daca vreti ceva da-ti add aici https://steamcommunity.com/id/assasinssmdfk/
Kpone
Membru, skill 0
Membru, skill 0
Posts: 47
Joined: 16 May 2016, 19:19
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Contact:

16 Apr 2019, 08:24

Are cumva native pentru csgo_mod? Ca eu nu vreau sa il folosesc pe acel mod de csgo si l.am compilat si l.am bagat in server dar imi zice ca nu ruleaza pluginul.
User avatar
Rainq
Manager FURIEN
Manager FURIEN
Posts: 2560
Joined: 21 Jul 2015, 18:50
Detinator Steam: Da
CS Status: Busy
Detinator server CS: ---
Reputatie: Fost moderator
Manager FURIEN.eXtreamCS.COM
Fost manager ZM.eXtreamCS.COM
Fost Membru Club eXtreamCS (trei luni)
Fond eXtream: 0
Location: Bucuresti
Been thanked: 8 times
Contact:

16 Apr 2019, 19:23

Code: Select all

#include <amxmodx>
#include <amxmisc>
#include <dhudmessage>

#define PLUGIN	"HUD Scoreboard"
#define VERSION	"1.3"
#define AUTHOR	"Kia Armani"

new TerrorWins
new CounterWins

new Terrorists
new CounterTerrorists

new hud_r
new hud_g
new hud_b
new hud_d

new Float:g_round_start = -1.0;
new Float:g_round_time;

new mp_roundtime;


public plugin_init()
{
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	/* Tasks */
	
	set_task(1.0,"HUDUpdate", 0,"",0,"b")
	
	/* CVARS */
	
	hud_r =register_cvar("hud_rcolor","0") // RED
	hud_g =register_cvar("hud_gcolor","255") // GREEN
	hud_b =register_cvar("hud_bcolor","0") // BLUE
	hud_d =register_cvar("hud_design", "1")
	
	
	register_cvar("hud_terror_prefix","T's")
	register_cvar("hud_counter_prefix","CT's")
	
	register_cvar("hud_terror_tprefix","Terrorists")
	register_cvar("hud_counter_tprefix","Counter-Terrorists")
	
	/* Events */
	
	register_event("SendAudio", "t_win", "a", "2&%!MRAD_terwin") 
	register_event("SendAudio", "ct_win", "a", "2&%!MRAD_ctwin")  
	
	register_logevent("EventRoundStart", 2, "1=Round_Start");
	register_logevent("EventRoundEnd", 2, "1=Round_End");
	register_event("TextMsg", "EventRoundRestart", "a", "2&#Game_C", "2&#Game_w");
	
	mp_roundtime = get_cvar_pointer("mp_roundtime");
}


public HUDUpdate()
{	
	new TPrefix[512],CTPrefix[512],TTeamPrefix[512],CTTeamPrefix[512]
	
	get_cvar_string("hud_terror_prefix",TPrefix,charsmax(TPrefix))
	get_cvar_string("hud_counter_prefix",CTPrefix,charsmax(CTPrefix))
	get_cvar_string("hud_terror_tprefix",TTeamPrefix,charsmax(TTeamPrefix))
	get_cvar_string("hud_counter_tprefix",CTTeamPrefix,charsmax(CTTeamPrefix))
	
	
	new iPlayers[32],iPlayers_A[32],pnum_all
	get_players(iPlayers, Terrorists, "aeh", "TERRORIST");
	get_players(iPlayers, CounterTerrorists, "aeh", "CT");
	
	get_players(iPlayers_A, pnum_all,"ah")
	
	new Float:RoundTime = get_roundtime_left()
	new RTF = floatround(RoundTime,floatround_round)
	
	switch(get_pcvar_num(hud_d))
	{
		case(1):
		{
			for(new i; i < pnum_all; i++)
			{
				new id_a = iPlayers_A[i]
				set_dhudmessage(get_pcvar_num(hud_r),get_pcvar_num(hud_g),get_pcvar_num(hud_b), -1.0, 0.05, 0, 6.0, 1.0,0.0,0.1,false)
				show_dhudmessage(id_a, "%s alive [%i] | [%i] %s alive^n          %s [%i] | [%i] %s" , TPrefix, Terrorists, CounterTerrorists,CTPrefix, TTeamPrefix, TerrorWins, CounterWins, CTTeamPrefix)
			}
		}
		case(2):
		{
			for(new i; i < pnum_all; i++)
			{
				new id_a = iPlayers_A[i]
				set_dhudmessage(get_pcvar_num(hud_r),get_pcvar_num(hud_g),get_pcvar_num(hud_b), -1.0, 0.05, 0, 6.0, 1.0,0.0,0.1,false)
				show_dhudmessage(id_a, "%s   |   %i | %i alive | %i | %i alive | %i   |   %s", TTeamPrefix,TerrorWins,Terrorists,RTF,CounterTerrorists,CounterWins,CTTeamPrefix)
			}
		}
	}
}

public t_win()
{
	TerrorWins++
}

public ct_win()
{
	CounterWins++
}

// Thanks to Exolent[jNr]

public EventRoundStart()
{
    g_round_start = get_gametime();
    g_round_time = get_pcvar_float(mp_roundtime) * 60.0;
}

public EventRoundEnd()
{
    g_round_start = -1.0;
}

public EventRoundRestart()
{
    g_round_start = -1.0;
}

Float:get_roundtime_left()
{
    return (g_round_start == -1.0) ? 0.0 : ((g_round_start + g_round_time) - get_gametime());
}
RETRAS
Image
Leul si tigru sunt mai puternici ca lupul,dar lupul la circ nu participa.
Kpone
Membru, skill 0
Membru, skill 0
Posts: 47
Joined: 16 May 2016, 19:19
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Contact:

17 Apr 2019, 06:48

Mersi mult @Rainq dar nu este ceea ce caut l-am testat si nu este la fel cum am cerut.
User avatar
L E V I N
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 2042
Joined: 24 Aug 2011, 11:24
Detinator Steam: Da
CS Status:
Detinator server CS: ☯∴
SteamID: riseofevo
Reputatie: Scripter eXtreamCS
Nume anterior: Adryyy
Location: ҳ̸Ҳ̸ҳ
Has thanked: 33 times
Been thanked: 330 times
Contact:

17 Apr 2019, 09:44

mori dacă nu e ca în poză???

Code: Select all

/* Plugin generated by AMXX-Studio */ 

    #include < amxmodx > 
    #include < dhudmessage > 
     
    #pragma semicolon 1 
         
    new const 
        PLUGIN_NAME[ ]         = "Furien Score & Round", 
        PLUGIN_VERSION[ ]     = "0.2.1"; 
         
         
    enum _:iTeamWons 
    { 
        FURIEN, 
        ANTIFURIEN 
    } 
     
    new g_iTeamWons[ iTeamWons ]; 
    new g_iRounds; 
             
                 
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[ FURIEN ] = 0; 
    g_iTeamWons[ ANTIFURIEN ] = 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[ FURIEN ] = 0;    g_iTeamWons[ ANTIFURIEN ] = 0;    } 
public ev_TerroristWin( )    g_iTeamWons[ FURIEN ]++; 
public ev_CtWin( )    g_iTeamWons[ ANTIFURIEN ]++; 

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 ]; 
         
        if( 1 <= get_user_team( id ) <= 3 ) 
        {
            set_dhudmessage( 255, 255, 255, -1.0, is_user_alive( id ) ? 0.01 : 0.16 , 0, _, 1.0, _, _ ); 
            show_dhudmessage( id, "Runda: %021",g_iRounds );

            set_dhudmessage( 255, 170, 0, -1.0, is_user_alive( id ) ? 0.03 : 0.18 , 0, _, 1.0, _, _ ); 
            show_dhudmessage( id, "T: %02i      -      CT: %02i",g_iTeamWons[ FURIEN ], g_iTeamWons[ ANTIFURIEN ] ); 
        }
    }
}
Kpone
Membru, skill 0
Membru, skill 0
Posts: 47
Joined: 16 May 2016, 19:19
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Contact:

17 Apr 2019, 18:21

@ L E V I N functioneaza pluginul nu exact ca in imagine dar e ok dar problema este ca deasupra unde scrie runda nu apare numarul la runda. in rest scorul ct sau t apare doar la runda nu apare,ms mutl
User avatar
L E V I N
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 2042
Joined: 24 Aug 2011, 11:24
Detinator Steam: Da
CS Status:
Detinator server CS: ☯∴
SteamID: riseofevo
Reputatie: Scripter eXtreamCS
Nume anterior: Adryyy
Location: ҳ̸Ҳ̸ҳ
Has thanked: 33 times
Been thanked: 330 times
Contact:

17 Apr 2019, 18:38

Code: Select all

/* Plugin generated by AMXX-Studio */ 

    #include < amxmodx > 
    #include < dhudmessage > 
     
    #pragma semicolon 1 
         
    new const 
        PLUGIN_NAME[ ]         = "Furien Score & Round", 
        PLUGIN_VERSION[ ]     = "0.2.1"; 
         
         
    enum _:iTeamWons 
    { 
        FURIEN, 
        ANTIFURIEN 
    } 
     
    new g_iTeamWons[ iTeamWons ]; 
    new g_iRounds; 
             
                 
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[ FURIEN ] = 0; 
    g_iTeamWons[ ANTIFURIEN ] = 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[ FURIEN ] = 0;    g_iTeamWons[ ANTIFURIEN ] = 0;    } 
public ev_TerroristWin( )    g_iTeamWons[ FURIEN ]++; 
public ev_CtWin( )    g_iTeamWons[ ANTIFURIEN ]++; 

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 ]; 
         
        if( 1 <= get_user_team( id ) <= 3 ) 
        {
            set_dhudmessage( 255, 255, 255, -1.0, is_user_alive( id ) ? 0.03 : 0.16 , 0, _, 1.0, _, _ ); 
            show_dhudmessage( id, "Runda: %02i",g_iRounds );

            set_dhudmessage( 255, 170, 0, -1.0, is_user_alive( id ) ? 0.01 : 0.18 , 0, _, 1.0, _, _ ); 
            show_dhudmessage( id, "T: %02i	-	CT: %02i",g_iTeamWons[ FURIEN ], g_iTeamWons[ ANTIFURIEN ] ); 
        }
    }
}
Kpone
Membru, skill 0
Membru, skill 0
Posts: 47
Joined: 16 May 2016, 19:19
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Contact:

18 Apr 2019, 10:34

gata @L E V I N am rezolvat,si primul cod functiona roar ca avea o litera gresita am verificat si am gasit problema si l-am rezolvat.Mersi mult. T.C
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests