you can use something like this
PHP Code:
new CsTeams:iTeam, iStoodOn;
iTeam = cs_get_user_team(id);
iStoodOn = pev(id, pev_groundentity);
if(0 < iStoodOn < get_maxplayers)
{
if(iTeam != cs_get_user_team(iStoodOn))
{
//id is stood on a player who is on the opposite team
}
}
untested
__________________