inf,если сильно нужно, можно сделать так: (хотя сам смысла не вижу, просмотрев весь плагин можно убедиться в этом)
заменить кусок кода: (функция print_color)
Код
stock print_color( index, iColor = NORMAL, const sMsg[], any:...)
{
new sBuffer[192];
vformat( sBuffer, 191, sMsg, 4 );
if ( index )
{
if ( iColor >= NORMAL )
UTIL_SayText( index, sBuffer );
else
{
new iTeam = get_user_team( index );
if ( iTeam % 3 == iColor )
UTIL_SayText( index, sBuffer );
else
{
UTIL_TeamInfo( index, g_sTeamNames[iColor] );
UTIL_SayText( index, sBuffer )
UTIL_TeamInfo( index, g_sTeamNames[iTeam] );
}
}
}
else
{
for ( new i = 1; i <= g_maxplayers; i++ )
{
if ( !is_user_connected( i ) ) continue;
if ( iColor >= NORMAL )
UTIL_SayText( i, sBuffer );
else
{
new iTeam = get_user_team( i );
if ( iTeam % 3 == iColor )
UTIL_SayText( i, sBuffer );
else
{
UTIL_TeamInfo( i, g_sTeamNames[iColor] );
UTIL_SayText( i, sBuffer )
UTIL_TeamInfo( i, g_sTeamNames[iTeam] );
}
}
}
}
}
на следующий:
Код
stock print_color( index, iColor = NORMAL, const sMsg[], any:...)
{
new sBuffer[192];
vformat( sBuffer, 191, sMsg, 4 );
if ( index )
{
if ( !is_user_connected( index ) ) return;
if ( iColor >= NORMAL )
UTIL_SayText( index, sBuffer );
else
{
new iTeam = get_user_team( index );
if ( iTeam % 3 == iColor )
UTIL_SayText( index, sBuffer );
else
{
UTIL_TeamInfo( index, g_sTeamNames[iColor] );
UTIL_SayText( index, sBuffer )
UTIL_TeamInfo( index, g_sTeamNames[iTeam] );
}
}
}
else
{
for ( new i = 1; i <= g_maxplayers; i++ )
{
if ( !is_user_connected( i ) ) continue;
if ( iColor >= NORMAL )
UTIL_SayText( i, sBuffer );
else
{
new iTeam = get_user_team( i );
if ( iTeam % 3 == iColor )
UTIL_SayText( i, sBuffer );
else
{
UTIL_TeamInfo( i, g_sTeamNames[iColor] );
UTIL_SayText( i, sBuffer )
UTIL_TeamInfo( i, g_sTeamNames[iTeam] );
}
}
}
}
return;
}