Code:
SetTeamGlow( CsTeams:Team, r=255, g=0, b=0, amt=25 )
{
new iPlayers[32]
new iNum
get_players( iPlayers, iNum )
new id
for( new i = 0; i < iNum; i++ )
{
id = iPlayers[i]
if( is_user_alive( id ) && ( cs_get_user_team( id ) == Team ) )
{
set_user_rendering( id, kRenderFxGlowShell, r, g, b, kRenderNormal, amt )
}
}
}
Code:
SetTeamGlow( CS_TEAM_T, 100, 200, 50, 17 )
// or
SetTeamGlow( CS_TEAM_T )
2nd - 5th parameters are optional. If you do not provide them in the function call then your glow will appear as red.
__________________