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_statistics( taskid ) {
new id = taskid - TASK_ID_HUD;
if( !is_user_alive( id ) )
return;
set_hudmessage( 255, 255, 255, 0.02, 0.91, 0, 6.0, 1.1, 0.0, 0.0, -1 );
ShowSyncHudMsg( id, msgSync2, "%s - HP: %d - Armor: %d^n%s", PlayerInfo[ id ][ class_name ], get_user_health( id ), get_user_armor( id ), PlayerInfo[ id ][ class_desc ] );
set_task( 0.1, "show_player_statistics", id + TASK_ID_HUD );
}
Overlaps for example:
PHP Code:
public RoundEnd( ) {
currentRound++;
if( currentRound >= get_pcvar_num( cvar_rounds ) ) {
set_hudmessage( 255, 255, 255, -1.0, -1.0, 0, 0.0, 5.0, 0.0, 0.0, -1 );
ShowSyncHudMsg( 0, msgSync, "Teams are changing!" );
currentRound = 0;
new players[ 32 ], num;
get_players( players, num );
for( new id = 0; id < num; id++ )
delayBetweenChange( players[ id ] );
} else {
set_hudmessage( 255, 255, 255, -1.0, -1.0, 0, 0.0, 5.0, 0.0, 0.0, -1 );
ShowSyncHudMsg( 0, msgSync, "Teams will change after %d round(-s)", get_pcvar_num( cvar_rounds ) - currentRound );
}
}