Simply use GetPlayerTeam().
PHP код:
if(pressed(KEY_ANALOG_RIGHT))
{
if(IsPlayerInRangeOfPoint(playerid,30, 2496.386,-1742.320,15.883))
{
if(GetPlayerTeam(playerid) == Groove)
{
MoveObject(Puerta,2496.386,-1742.320,5.883, 8.0);
SetTimer("CerrarPuerta", 7000, true);
}
}
}