Quote:
Originally Posted by maqi
You don't need a flag to skip dead, you need a flag to skip alive  As I can see, you are never going to show this message to an alive player. so go with
Code:
get_players ( iPlayers, iNum, "bch" );
|
Yeah, I misunderstood what you said, that would work, thanks.
Quote:
Originally Posted by maqi
Other than that, check for some other hud message overwriting the same channel.
|
I also think that might be the case, I already used -1 channel so it automatically finds a new channel, so they don't overwrite each other, but it's not working.
EDIT: Client_print works, but not HUDs..
PHP Code:
BetterLuckNextTime( iPlayer )
{
set_hudmessage( 0, 255, 0, 0.30, 0.30, 0, 0.0, 10.0, _, _, -1 );
show_hudmessage( iPlayer, "Your team placed: #%d", ( GetRemainingTeams( ) + 1 ) );
client_print( iPlayer, print_center, "Your team placed: #%d", ( GetRemainingTeams( ) + 1 ) );
if( GetPlayerPerTeam( ) > 1 )
{
new szPlayers[ 32 ], iNum, iTempID;
get_players( szPlayers, iNum, "bch" );
for( new i; i < iNum; i++ )
{
iTempID = szPlayers[ i ];
if( ( GetPlayerTeam( iTempID ) == GetPlayerTeam( iPlayer ) ) && ( iTempID != iPlayer ) )
{
set_hudmessage( 0, 255, 0, 0.35, 0.35, 0, 0.0, 10.0, _, _, -1 );
show_hudmessage( iTempID, "Your team placed: #%d", ( GetRemainingTeams( ) + 1 ) );
}
}
}
}
__________________