Raised This Month: $ Target: $400
 0% 

hudmessage overwritting


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
DavidLin
Member
Join Date: Jan 2016
Old 02-05-2016 , 08:36   hudmessage overwritting
Reply With Quote #1

So I have this function made which always called till player dies to show his info, and when other hud message is shown this info hud overwrites it and it doesn't show anything is there work around or something because I tried setting different channels and everything.

PHP Code:
public show_player_statisticstaskid ) {
        new 
id taskid TASK_ID_HUD;
        if( !
is_user_aliveid ) )
                return;

        
set_hudmessage2552552550.020.9106.01.10.00.0, -);
        
ShowSyncHudMsgidmsgSync2"%s - HP: %d - Armor: %d^n%s"PlayerInfoid ][ class_name ], get_user_healthid ), get_user_armorid ), PlayerInfoid ][ class_desc ] );
        
set_task0.1"show_player_statistics"id TASK_ID_HUD );

Overlaps for example:
PHP Code:
public RoundEnd( ) {
        
currentRound++;
        if( 
currentRound >= get_pcvar_numcvar_rounds ) ) {
                
set_hudmessage255255255, -1.0, -1.000.05.00.00.0, -);
                
ShowSyncHudMsg0msgSync"Teams are changing!" );

                
currentRound 0;
                new 
players32 ], num;
                
get_playersplayersnum );

                for( new 
id 0id numid++ )
                        
delayBetweenChangeplayersid ] );

        } else {
                
set_hudmessage255255255, -1.0, -1.000.05.00.00.0, -);
                
ShowSyncHudMsg0msgSync"Teams will change after %d round(-s)"get_pcvar_numcvar_rounds ) - currentRound );
        }

DavidLin is offline
 



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 09:22.


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