
In shared.inl:
Code: Select all
public SHARED_IsOnTeam( id )
{
new iTeam = get_user_team( id );
// Counter-Strike or Condition Zero Check
if ( g_MOD == GAME_CSTRIKE || g_MOD == GAME_CZERO )
{
if ( iTeam == CTS || iTeam == TS )
{
return true;
}
}
// Day of Defeat Check
else if ( g_MOD == GAME_DOD )
{
if ( iTeam == ALLIES || iTeam == AXIS )
{
return true;
}
}
return false;
}
Code: Select all
public SHARED_IsOnTeam( id )
{
new team[2]
get_user_team(id,team,1);
// Counter-Strike or Condition Zero Check
if ( g_MOD == GAME_CSTRIKE || g_MOD == GAME_CZERO )
{
if ( team[0] == 'C' || team[0] == 'T' )
{
return true;
}
}
// Day of Defeat Check
else if ( g_MOD == GAME_DOD )
{
if ( iTeam == ALLIES || iTeam == AXIS )
{
return true;
}
}
return false;
}

Btw, this is using the latest binaries from the SVN as of ~4:30PM.
Slmclarengt aka sleeper @ bndclan.com