Quote:
Originally Posted by maqi
It's executed in the right order.
PHP Code:
BetterLuckNextTime( iVictim ); // first log_to_file( "csbattleroyale.txt", "#1 Called | iVictim = %d", iVictim ); //second
|
Yes, my bad, I didn't notice
Quote:
Originally Posted by maqi
- You are showing ( GetRemainingTeams( ) - 1 ) to the player but ( GetRemainingTeams( ) + 1 ) to his team ( Im not sure if this is intended, but doesn't seem right )
|
I have already fixed it since last night
Quote:
Originally Posted by maqi
- Don't use szPlayers[ i ] if you already defined iTempID, or don't use iTempID at all 
|
Doesn't really fix this bug but you're right, I was in a rush when I edited the code so I missed that.
Quote:
Originally Posted by maqi
- And I would suggest adding some flags to the get_players native, as you don't need a hud message to be shown to bots for example, or even alive players in this case.
|
If I add the flag to skip dead players how would I loop through his dead teammates?
Quote:
Originally Posted by maqi
As for the hud not showing ( if it still isn't ), can we please take a look at the GetRemainingTeams() ? 
|
It was showing like 30 mins ago now It's gone again, idk what's causing it to not show sometimes..
As I said, it just returns an integer.
PHP Code:
GetRemainingTeams( )
{
new iRemainingTeams;
for( new iTeam = 1; iTeam <= GetMaxTeams( ); iTeam++ )
{
if( GetTeamAlivePlayers( iTeam ) >= 1 ) // GetTeamAlivePlayers returns number of alive players in a team
{
iRemainingTeams++;
}
}
return iRemainingTeams;
}
__________________