Raised This Month: $32 Target: $400
 8% 

Help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Uzviseni Bog
Senior Member
Join Date: Jun 2020
Old 06-29-2020 , 15:10   Help
Reply With Quote #1

I don't know how to change the hud message so that it doesn't flicker but just stands






PHP Code:
set_hudmessageiNameRediNameGreeniNameBlue, -1.0is_user_aliveid ) ? 0.01 0.16 0_1.0__);
            
ShowSyncHudMsgidSyncHudTeamNamesg_szTeamsMessage );
            
            
set_hudmessageiScoreRediScoreGreeniScoreBlue, -1.0is_user_aliveid ) ? 0.01 0.16 0_1.0__);
            
ShowSyncHudMsgidSyncHudTeamScoreg_szScoreMessage,  g_iTeamWonsFURIEN ], g_iTeamWonsANTIFURIEN ]  );
            
            
            
set_dhudmessageiNameRediNameGreeniNameBlue, -1.0is_user_aliveid ) ? 0.03 0.18 0_1.0_);
            
show_dhudmessageidg_szRoundMessage );
            
            
set_dhudmessageiScoreRediScoreGreeniScoreBlue, -1.0is_user_aliveid ) ? 0.06 0.21 0_1.0_);
            
show_dhudmessageidg_szRoundg_iRounds ); 

Last edited by Uzviseni Bog; 06-29-2020 at 15:10.
Uzviseni Bog is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 06-29-2020 , 17:45   Re: Help
Reply With Quote #2

@Uzviseni Bog - That's because you use random color "iScoreRed, iScoreGreen, iScoreBlue / iScoreRed, iScoreGreen, iScoreBlue, iNameRed, iNameGreen, iNameBlue, iScoreRed, iScoreGreen, iScoreBlue"

Just remove them and add color
Exmple:
From
PHP Code:

            set_hudmessage
iScoreRediScoreGreeniScoreBlue, -1.0is_user_aliveid ) ? 0.01 0.16 0_1.0__);
            
ShowSyncHudMsgidSyncHudTeamScoreg_szScoreMessage,  g_iTeamWonsFURIEN ], g_iTeamWonsANTIFURIEN ]  ); 
To

PHP Code:


            set_hudmessage
255,  0, -1.0is_user_aliveid ) ? 0.01 0.16 0_1.0__);
            
ShowSyncHudMsgidSyncHudTeamScoreg_szScoreMessage,  g_iTeamWonsFURIEN ], g_iTeamWonsANTIFURIEN ]  ); 
Supremache is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 06-29-2020 , 18:07   Re: Help
Reply With Quote #3

@Supremache - not true.

You can't have more than 4 HUD messages on the screen at the same time. If you have other messages from other plugins, they will try to overwrite each other and cause a flickering effect.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
ZaX
Senior Member
Join Date: Jan 2015
Old 06-29-2020 , 18:32   Re: Help
Reply With Quote #4

Quote:
Originally Posted by OciXCrom View Post
@Supremache - not true.

You can't have more than 4 HUD messages on the screen at the same time. If you have other messages from other plugins, they will try to overwrite each other and cause a flickering effect.
Is it fine to have hud and dhud messages at the screen at the same time ?
like 2 hud messages, and 4 dhud messages - just an example
ZaX is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 06-29-2020 , 18:42   Re: Help
Reply With Quote #5

Quote:
Originally Posted by OciXCrom View Post
@Supremache - not true.

You can't have more than 4 HUD messages on the screen at the same time. If you have other messages from other plugins, they will try to overwrite each other and cause a flickering effect.
PHP Code:
/* Plugin generated by AMXX-Studio */

    #include < amxmodx >
    #include < dhudmessage >
    
    #pragma semicolon 1

        // --| Credite lui CryWolf pentru 'layout' !!
    
new const
        
PLUGIN_NAME[ ]         = "BaseBuilder Score & Round",
        
PLUGIN_VERSION[ ]     = "0.2.1";
    
    
/* Copyright (c) 2013 Askhanar  @eXtreamCS.com
    
    www.eXtreamCS.com/forum
    www.amxmodx.org
    www.amxmodx.ro
    
    */
    
    
    // --| Culorile in RRR GGG BBB ( poate fi luata si in paint ).
    // --| Aici sunt culorile de la mesajele: Furien  AntiFurien si Round
    
    #define    iNameRed    0
    #define    iNameGreen    255
    #define    iNameBlue    255
    
    // --| Culorile in RRR GGG BBB ( poate fi luata si in paint ).
    // --| Aici sunt culorile de la mesajele: numarul de castiguri si runde.
    
    #define    iScoreRed    255
    #define    iScoreGreen    0
    #define    iScoreBlue    0
    
    
new const
        
g_szTeamsMessage[ ]     = "    |-  Zombie           Humans  -|    ",
        
g_szScoreMessage[ ]    = "%02i                                                %02i",
        
g_szRoundMessage[ ]    = "                    Round                     ",
        
g_szRound[ ]        = "                      %02i                       ";
        
        
    
enum _:iTeamWons
    
{
        
BASEBUILDER,
        
ANTIBASEBUILDER
    
}
    
    new 
g_iTeamWonsiTeamWons ];
    new 
g_iRounds;
    
    new 
SyncHudTeamNamesSyncHudTeamScore;
            
                
public 
plugin_init( )
{
    
    
register_pluginPLUGIN_NAMEPLUGIN_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_iTeamWonsBASEBUILDER ] = 0;
    
g_iTeamWonsANTIBASEBUILDER ] = 0;
    
    
SyncHudTeamNames CreateHudSyncObj( );
    
SyncHudTeamScore CreateHudSyncObj( );
    
    
    
set_task1.0"task_DisplayHudScore"___"b");
    
// Add your code here...
}


public 
ev_NewRound( )        g_iRounds++;
public 
ev_RoundRestart( )    {    g_iRounds 0;    g_iTeamWonsBASEBUILDER ] = 0;    g_iTeamWonsANTIBASEBUILDER ] = 0;    }
public 
ev_TerroristWin( )    g_iTeamWonsBASEBUILDER ]++;
public 
ev_CtWin( )    g_iTeamWonsANTIBASEBUILDER ]++;

public 
task_DisplayHudScore( )
{
    static 
iPlayers32 ];
    static 
iPlayersNum;
        
    
get_playersiPlayersiPlayersNum"ch" );
    if( !
iPlayersNum )
        return;
        
    static 
idi;
    for( 
0iPlayersNumi++ )
    {
        
id iPlayers];
        
        if( 
<= get_user_teamid ) <= )
        {
            
set_hudmessageiNameRediNameGreeniNameBlue, -1.0is_user_aliveid ) ? 0.01 0.16 0_1.0__);
            
ShowSyncHudMsgidSyncHudTeamNamesg_szTeamsMessage );
            
            
set_hudmessageiScoreRediScoreGreeniScoreBlue, -1.0is_user_aliveid ) ? 0.01 0.16 0_1.0__);
            
ShowSyncHudMsgidSyncHudTeamScoreg_szScoreMessage,  g_iTeamWonsBASEBUILDER ], g_iTeamWonsANTIBASEBUILDER ]  );
            
            
            
set_dhudmessageiNameRediNameGreeniNameBlue, -1.0is_user_aliveid ) ? 0.03 0.18 0_1.0_);
            
show_dhudmessageidg_szRoundMessage );
            
            
set_dhudmessageiScoreRediScoreGreeniScoreBlue, -1.0is_user_aliveid ) ? 0.06 0.21 0_1.0_);
            
show_dhudmessageidg_szRoundg_iRounds );
        }
    
    }

It's first time i know 4 hud in the same screen will do flickering effect.
But i think hudmessage is different about dhudmessage, everyone's of them using different api system
Supremache is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:44.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode